mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Updating time duration functions.
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user