mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 02:42:18 -05:00
fix timestamp truncation (#3874)
This commit is contained in:
parent
e3825ec263
commit
7ef6a434f9
@ -1144,8 +1144,7 @@ extern "C" uint64_t GetUnixTimestamp() {
|
|||||||
auto time = std::chrono::system_clock::now();
|
auto time = std::chrono::system_clock::now();
|
||||||
auto since_epoch = time.time_since_epoch();
|
auto since_epoch = time.time_since_epoch();
|
||||||
auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(since_epoch);
|
auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(since_epoch);
|
||||||
long now = millis.count();
|
return (uint64_t)millis.count();
|
||||||
return now;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// C->C++ Bridge
|
// C->C++ Bridge
|
||||||
|
Loading…
Reference in New Issue
Block a user