Return the UNIX time in microseconds */
| 1297 | |
| 1298 | /* Return the UNIX time in microseconds */ |
| 1299 | long long ustime(void) { |
| 1300 | struct timeval tv; |
| 1301 | long long ust; |
| 1302 | |
| 1303 | gettimeofday(&tv, NULL); |
| 1304 | ust = ((long long)tv.tv_sec)*1000000; |
| 1305 | ust += tv.tv_usec; |
| 1306 | return ust; |
| 1307 | } |
| 1308 | |
| 1309 | /* Return the UNIX time in milliseconds */ |
| 1310 | mstime_t mstime(void) { |
no outgoing calls
no test coverage detected