Hello Supun,

Thank you Supun for your advice. I have started implementing what you
described in your email, and I guess this "Central Time Authority approach"
is the only way to go.

Thank you all for your input,

Nick


2015-04-23 12:16 GMT-04:00 Supun Kamburugamuva <[email protected]>:

> From our experience, no matter how much we tried, we cannot get an
> accurate time measurements across different machines. NTP can only make the
> clocks synchronize up to some level and even if the clocks are synced they
> drift again very quickly. If you really want to measure the time across
> machines I guess one method is to send a message with a timestamp, get a
> response with the same time-stamp and get the difference.
>
> Thanks,
> Supun..
>
> On Thu, Apr 23, 2015 at 10:45 AM, Nick R. Katsipoulakis <
> [email protected]> wrote:
>
>> Hello Jeremy,
>>
>> I have the same fears on using nano-time.
>>
>> Cheers,
>> Nick
>>
>> 2015-04-23 10:29 GMT-04:00 Jeremy Heiler <[email protected]>:
>>
>>> On Wed, Apr 22, 2015 at 3:18 PM, Sushant Kumar <[email protected]>
>>> wrote:
>>> >
>>> > look at
>>> http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/System.html#nanoTime%28%29
>>> .
>>>
>>> I'd be wry of using nanoTime() across systems. I don't think there's any
>>> guarantee of consistency.
>>>
>>
>>
>>
>> --
>> Nikolaos Romanos Katsipoulakis,
>> University of Pittsburgh, PhD candidate
>>
>
>
>
> --
> Supun Kamburugamuva
> Member, Apache Software Foundation; http://www.apache.org
> E-mail: [email protected];  Mobile: +1 812 369 6762
> Blog: http://supunk.blogspot.com
>
>


-- 
Nikolaos Romanos Katsipoulakis,
University of Pittsburgh, PhD candidate

Reply via email to