| 22 | #include <windows.h> |
| 23 | |
| 24 | nano_time_t |
| 25 | conv2nanosec(nano_time_t t) |
| 26 | { |
| 27 | LARGE_INTEGER count; |
| 28 | |
| 29 | if (QueryPerformanceFrequency(&count) == FALSE) { |
| 30 | return 0; |
| 31 | } |
| 32 | t = (t * 1000000)/count.QuadPart; |
| 33 | |
| 34 | return (nano_time_t)(t * 1000); |
| 35 | } |
| 36 | |
| 37 | nano_time_t |
| 38 | conv2microsec(nano_time_t t) |
nothing calls this directly
no outgoing calls
no test coverage detected