废话不多说,直接上代码
using Microseconds = std::chrono::microseconds;
time_t getTimeInMilliseconds() {
return std::chrono::time_point_cast<Microseconds>(
std::chrono::system_clock::now()).time_since_epoch().count();
}
废话不多说,直接上代码
using Microseconds = std::chrono::microseconds;
time_t getTimeInMilliseconds() {
return std::chrono::time_point_cast<Microseconds>(
std::chrono::system_clock::now()).time_since_epoch().count();
}