Skip to content

Commit 90a1ce3

Browse files
committed
io: change io_timer to monotonic clock
1 parent d8113d6 commit 90a1ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/support/network/io_timer_source.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ io_timer_source::io_timer_source(timer_manager& tick_sink_, io_broker& broker, s
2121
{
2222
using namespace std::chrono;
2323

24-
timer_fd = unique_fd{::timerfd_create(CLOCK_REALTIME, 0)};
24+
timer_fd = unique_fd{::timerfd_create(CLOCK_MONOTONIC, 0)};
2525
if (not timer_fd.is_open()) {
2626
report_fatal_error_if_not("Failed to create timer source (errno={})", strerror(errno));
2727
}

0 commit comments

Comments
 (0)