Initial Commit
This commit is contained in:
commit
c2e7548296
238 changed files with 65475 additions and 0 deletions
17
absl/time/internal/get_current_time_windows.inc
Normal file
17
absl/time/internal/get_current_time_windows.inc
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue