c++获取当前的时间

uint64_t getCurrentTime();

uint64_t getCurrentTime() {
    using namespace std::chrono;
    uint64_t ctime = duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count();
    return ctime;
}
posted @ 2022-03-21 18:05  bH1pJ  阅读(89)  评论(0编辑  收藏  举报