| 284 | uint16_t crc16(const char *buf, int len); |
| 285 | |
| 286 | static long long ustime(void) { |
| 287 | struct timeval tv; |
| 288 | long long ust; |
| 289 | |
| 290 | gettimeofday(&tv, NULL); |
| 291 | ust = ((long long)tv.tv_sec)*1000000; |
| 292 | ust += tv.tv_usec; |
| 293 | return ust; |
| 294 | } |
| 295 | |
| 296 | static long long mstime(void) { |
| 297 | return ustime()/1000; |
no outgoing calls
no test coverage detected