mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
Merge pull request #946 from Neveix/fix-precise-utc-time
Change steady clock to system clock
This commit is contained in:
commit
f62e5a880d
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue