io-uring: add sendmsg
This commit is contained in:
parent
9416efeabe
commit
e4f97287bc
17 changed files with 493 additions and 191 deletions
|
|
@ -36,6 +36,11 @@ impl Time {
|
|||
Ok(Self(time))
|
||||
}
|
||||
|
||||
pub fn in_ms(ms: u64) -> Result<Time, TimeError> {
|
||||
let now = Self::now()?;
|
||||
Ok(now + Duration::from_millis(ms))
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn now_unchecked() -> Time {
|
||||
let mut time = uapi::pod_zeroed();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue