| 114 | uint16_t crc16(const char *buf, int len); |
| 115 | |
| 116 | static long long ustime(void) { |
| 117 | struct timeval tv; |
| 118 | long long ust; |
| 119 | |
| 120 | gettimeofday(&tv, NULL); |
| 121 | ust = ((long long)tv.tv_sec)*1000000; |
| 122 | ust += tv.tv_usec; |
| 123 | return ust; |
| 124 | } |
| 125 | |
| 126 | static long long mstime(void) { |
| 127 | return ustime()/1000; |
no outgoing calls
no test coverage detected