| 122 | \*-------------------------------------------------------------------------*/ |
| 123 | #ifdef _WIN32 |
| 124 | double timeout_gettime(void) { |
| 125 | FILETIME ft; |
| 126 | double t; |
| 127 | GetSystemTimeAsFileTime(&ft); |
| 128 | /* Windows file time (time since January 1, 1601 (UTC)) */ |
| 129 | t = ft.dwLowDateTime/1.0e7 + ft.dwHighDateTime*(4294967296.0/1.0e7); |
| 130 | /* convert to Unix Epoch time (time since January 1, 1970 (UTC)) */ |
| 131 | return (t - 11644473600.0); |
| 132 | } |
| 133 | #else |
| 134 | double timeout_gettime(void) { |
| 135 | struct timeval v; |
no outgoing calls
no test coverage detected