mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-21 19:40:39 +00:00
replaced high_resolution_clock with system_time for timestamps
This commit is contained in:
@@ -149,3 +149,11 @@ time_t getTime() {
|
||||
|
||||
return (time_t)value.count();
|
||||
}
|
||||
|
||||
time_t getTimestamp() {
|
||||
using namespace std::chrono;
|
||||
|
||||
milliseconds value = duration_cast<milliseconds>((time_point_cast<milliseconds>(system_clock::now())).time_since_epoch());
|
||||
|
||||
return (time_t)value.count();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user