| 204 | |
| 205 | |
| 206 | int main() |
| 207 | { |
| 208 | //struct tm start_time, end_time; |
| 209 | time_t rawtime; |
| 210 | |
| 211 | for (int i = 0; i < 11; ++i) |
| 212 | { |
| 213 | char buf[256]; |
| 214 | time(&rawtime); |
| 215 | hl_usleep(1000000); // test 1s sleep |
| 216 | date_strget(buf, sizeof(buf), 0); |
| 217 | printf("%s\n", buf); |
| 218 | time(&rawtime); |
| 219 | } |
| 220 | |
| 221 | return 0; |
| 222 | } |
| 223 | #endif |
nothing calls this directly
no test coverage detected