Return the UNIX time in microseconds */
| 1212 | |
| 1213 | /* Return the UNIX time in microseconds */ |
| 1214 | long long ustime(void) { |
| 1215 | struct timeval tv; |
| 1216 | long long ust; |
| 1217 | |
| 1218 | gettimeofday(&tv, NULL); |
| 1219 | ust = ((long long)tv.tv_sec)*1000000; |
| 1220 | ust += tv.tv_usec; |
| 1221 | return ust; |
| 1222 | } |
| 1223 | |
| 1224 | /* Return the UNIX time in milliseconds */ |
| 1225 | mstime_t mstime(void) { |
no outgoing calls
no test coverage detected