Skip to content

Commit

Permalink
Merge pull request robotology#3041 from randaz81/fix_systemClock
Browse files Browse the repository at this point in the history
windows<->linux timestamps sync fix
  • Loading branch information
randaz81 authored Nov 10, 2023
2 parents 61b0e82 + c2a741e commit 5e39fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libYARP_os/src/yarp/os/SystemClock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ void yarp::os::SystemClock::delaySystem(double seconds)

double yarp::os::SystemClock::nowSystem()
{
return std::chrono::time_point_cast<std::chrono::duration<double>>(std::chrono::high_resolution_clock::now()).time_since_epoch().count();
return std::chrono::time_point_cast<std::chrono::duration<double>>(std::chrono::system_clock::now()).time_since_epoch().count();
}

0 comments on commit 5e39fb6

Please sign in to comment.