Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Switch to monotonic clock (ray-project#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanie-wang authored and robertnishihara committed Oct 11, 2017
1 parent 0684258 commit 1e0ab3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ char *ObjectID_to_string(ObjectID obj_id, char *id_string, int id_length) {
int64_t current_time_ms() {
std::chrono::milliseconds ms_since_epoch =
std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::system_clock::now().time_since_epoch());
std::chrono::steady_clock::now().time_since_epoch());
return ms_since_epoch.count();
}

0 comments on commit 1e0ab3d

Please sign in to comment.