mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
windows: fix microseconds time calculation
https://github.com/warmcat/libwebsockets/issues/1297
This commit is contained in:
parent
37f2297b2a
commit
794c70cdc0
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ time_in_microseconds()
|
|||
memcpy(&datetime, &filetime, sizeof(datetime));
|
||||
|
||||
/* Windows file times are in 100s of nanoseconds. */
|
||||
return (datetime.QuadPart - DELTA_EPOCH_IN_MICROSECS) / 10;
|
||||
return (datetime.QuadPart / 10) - DELTA_EPOCH_IN_MICROSECS;
|
||||
}
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
|
|
Loading…
Add table
Reference in a new issue