From 2e32fe92f4a13c93da58fca4a389f43120c6ac7b Mon Sep 17 00:00:00 2001 From: Harrand Date: Sun, 17 Nov 2024 10:41:44 +0000 Subject: [PATCH] [core.time] refactored system_millis->time_millis and system_nanos->time_nanos --- include/tz/core/time.hpp | 4 ++-- src/tz/core/time.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/tz/core/time.hpp b/include/tz/core/time.hpp index 6eccc8e5f2..95ef9e4a50 100644 --- a/include/tz/core/time.hpp +++ b/include/tz/core/time.hpp @@ -4,8 +4,8 @@ namespace tz { - std::uint64_t system_millis(); - std::uint64_t system_nanos(); + std::uint64_t time_millis(); + std::uint64_t time_nanos(); } #endif // TOPAZ_CORE_TIME_HPP \ No newline at end of file diff --git a/src/tz/core/time.cpp b/src/tz/core/time.cpp index 8e32bc2dc7..b083855184 100644 --- a/src/tz/core/time.cpp +++ b/src/tz/core/time.cpp @@ -3,12 +3,12 @@ namespace tz { - std::uint64_t system_millis() + std::uint64_t time_millis() { return std::chrono::duration_cast(std::chrono::steady_clock::now().time_since_epoch()).count(); } - std::uint64_t system_nanos() + std::uint64_t time_nanos() { return std::chrono::duration_cast(std::chrono::steady_clock::now().time_since_epoch()).count(); }