MCPcopy Create free account
hub / github.com/Tencent/phxqueue / DiffTimespecMS

Function DiffTimespecMS

phxqueue/comm/utils/benchmark_util.cpp:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46};
47
48static 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
53static void *ThreadRunFunc(void *void_args) {
54 ThreadRunFuncArgs_t *args{reinterpret_cast<ThreadRunFuncArgs_t *>(void_args)};

Callers 1

RoutineRunFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected