mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 05:20:05 +00:00
Fix time handling on systems with 32-bit time_t
This commit is contained in:
parent
7249b54127
commit
9ab998688c
@ -184,7 +184,7 @@ size_t U8toU16(std::string src, char16_t* des, size_t max) {
|
|||||||
time_t getTime() {
|
time_t getTime() {
|
||||||
using namespace std::chrono;
|
using namespace std::chrono;
|
||||||
|
|
||||||
milliseconds value = duration_cast<milliseconds>((time_point_cast<milliseconds>(high_resolution_clock::now())).time_since_epoch());
|
milliseconds value = duration_cast<milliseconds>((time_point_cast<milliseconds>(steady_clock::now())).time_since_epoch());
|
||||||
|
|
||||||
return (time_t)value.count();
|
return (time_t)value.count();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user