Merge pull request #946 from Neveix/fix-precise-utc-time

Change steady clock to system clock
This commit is contained in:
MihailRis 2026-08-23 19:24:44 +03:00 • committed by GitHub
commit f62e5a880d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ static int l_utc_time(lua::State* L) {
}
static int l_precise_utc_time(lua::State* L) {
auto now = std::chrono::steady_clock::now();
auto now = std::chrono::system_clock::now();
return lua::pushnumber(
L, std::chrono::duration<double>(now.time_since_epoch()).count()
);