mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-02-24 11:40:04 +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