Updating time duration functions.

This commit is contained in:
Christoffer Lerno
2023-09-05 10:57:50 +02:00
parent 53598b8c40
commit ffb7935e12
10 changed files with 80 additions and 60 deletions

View File

@@ -54,6 +54,11 @@ struct Poll
PollEvents revents;
}
fn ulong! poll_ms(Poll[] polls, long timeout_ms)
{
return poll(polls, time::ms(timeout_ms)) @inline;
}
/**
* @param [inout] polls
* @param timeout "duration to poll."