Skip to content

Commit 88be35c

Browse files
Switch to high resolution clock for current time
1 parent bc86c3d commit 88be35c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libtrn/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ void verify_sig()
484484
double current_time()
485485
{
486486
using namespace std::chrono;
487-
auto result{duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count()};
487+
auto result{duration_cast<milliseconds>(high_resolution_clock::now().time_since_epoch()).count()};
488488
return static_cast<double>(result) / 1000.0;
489489
}
490490

0 commit comments

Comments
 (0)