📜  c++ chrono get milliseconds - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.070000             🧑  作者: Mango

代码示例1
#include 

uint32_t GetMillis() {
    using namespace std::chrono;
    return static_cast(duration_cast(
        system_clock::now().time_since_epoch()).count());
}