22 auto now = std::chrono::system_clock::now();
23 auto now_ms = std::chrono::time_point_cast<std::chrono::milliseconds>(now);
24 auto epoch = now_ms.time_since_epoch();
25 auto value = std::chrono::duration_cast<std::chrono::milliseconds>(epoch);
32 auto now = std::chrono::system_clock::now();
33 auto now_ms = std::chrono::time_point_cast<std::chrono::microseconds>(now);
34 auto epoch = now_ms.time_since_epoch();
35 auto value = std::chrono::duration_cast<std::chrono::microseconds>(epoch);
static uint64_t nowus()
returns the current epoch in microseconds
static uint64_t nowms()
returns the current epoch in milliseconds
unsigned __int64 uint64_t