in reply to SNTP Client/Server V2 RFC
Again, like in Re: UDP SNTP Client/Server RFC, it doesn't work on Windows, this time due to 'clock_getres'. The quick fix in client:
use Time::HiRes qw( gettimeofday CLOCK_REALTIME); #clock_getres ); # my $precision_client = clock_getres( CLOCK_REALTIME ); use POSIX qw(CLOCKS_PER_SEC); my (undef, undef, $precision_client, undef, undef) = POSIX::times();
And the same in the server changing the variable to $precision_server.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SNTP Client/Server V2 RFC
by thanos1983 (Parson) on Sep 23, 2014 at 22:27 UTC | |
by VinsWorldcom (Prior) on Sep 24, 2014 at 12:39 UTC | |
by thanos1983 (Parson) on Sep 24, 2014 at 15:51 UTC |