We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b50696b commit 4540919Copy full SHA for 4540919
1 file changed
runtime-light/stdlib/system/system-functions.h
@@ -75,7 +75,7 @@ inline kphp::coro::task<> f$usleep(int64_t microseconds) noexcept {
75
kphp::log::warning("value of microseconds ({}) must be positive", microseconds);
76
co_return;
77
}
78
- const std::chrono::milliseconds sleep_time{microseconds * 1000};
+ const std::chrono::microseconds sleep_time{microseconds};
79
co_await wait_for_timer_t{sleep_time};
80
81
0 commit comments