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

Method GetSteadyClockMS

phxqueue/comm/utils/time_util.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36const uint64_t Time::GetSteadyClockMS() {
37 auto now_time = chrono::steady_clock::now();
38 uint64_t now = (chrono::duration_cast<chrono::milliseconds>(now_time.time_since_epoch())).count();
39 return now;
40}
41
42void Time::MsSleep(const int time_ms) {
43 timespec t;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected