| 46 | }; |
| 47 | |
| 48 | static uint64_t DiffTimespecMS(const struct timespec &st, const struct timespec &ed) |
| 49 | { |
| 50 | return (ed.tv_sec - st.tv_sec) * 1000 + ed.tv_nsec / 1000000 - st.tv_nsec / 1000000; |
| 51 | } |
| 52 | |
| 53 | static void *ThreadRunFunc(void *void_args) { |
| 54 | ThreadRunFuncArgs_t *args{reinterpret_cast<ThreadRunFuncArgs_t *>(void_args)}; |