| 11 | |
| 12 | #ifdef _WIN32 |
| 13 | double get_timestamp () |
| 14 | { |
| 15 | FILETIME ft; |
| 16 | GetSystemTimePreciseAsFileTime (&ft); |
| 17 | int64_t t = ((int64_t)ft.dwHighDateTime << 32L) | (int64_t)ft.dwLowDateTime; |
| 18 | return (t - FILETIME_TO_UNIX) / (10.0 * 1000.0 * 1000.0); |
| 19 | } |
| 20 | #else |
| 21 | double get_timestamp () |
| 22 | { |
no outgoing calls
no test coverage detected