tvl-depot/absl/time/internal/get_current_time_windows.inc
2017-09-19 16:54:40 -04:00

17 lines
398 B
C++

#include "absl/time/clock.h"
#include <chrono>
#include <cstdint>
namespace absl {
namespace time_internal {
static int64_t GetCurrentTimeNanosFromSystem() {
return std::chrono::duration_cast<std::chrono::nanoseconds>(
std::chrono::system_clock::now() -
std::chrono::system_clock::from_time_t(0))
.count();
}
} // namespace time_internal
} // namespace absl