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

Method GetTimestampMS

phxqueue/comm/utils/time_util.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29
30const uint64_t Time::GetTimestampMS() {
31 auto now_time = chrono::system_clock::now();
32 uint64_t now = (chrono::duration_cast<chrono::milliseconds>(now_time.time_since_epoch())).count();
33 return now;
34}
35
36const uint64_t Time::GetSteadyClockMS() {
37 auto now_time = chrono::steady_clock::now();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected