| 296 | #include <time.h> |
| 297 | |
| 298 | static int gettime(void) |
| 299 | { |
| 300 | struct timespec ts; |
| 301 | clock_gettime(CLOCK_REALTIME_COARSE, &ts); |
| 302 | time_t seconds = ts.tv_sec; |
| 303 | int millisecond = ts.tv_nsec / 1000000; |
| 304 | return millisecond + seconds * 1000; |
| 305 | } |
| 306 | |
| 307 | /* Adapt Layer */ |
| 308 |
nothing calls this directly
no test coverage detected