Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- u64 NtpClient::GetTime( const char* ntpServer ){
- time_duration t = GetNtpTime(ntpServer) - ComputeDate(0);
- u64 high;
- u64 low;
- u64 seconds_fract;
- unsigned long secs = t.total_seconds();
- long fract = t.fractional_seconds();
- high = static_cast<u64>(secs) << 32;
- low = static_cast<u64>(fract);
- seconds_fract = high | low;
- return seconds_fract;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement