add tools::timer module

This wraps POSIX timers via timer_create(2).

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2018-12-19 11:07:43 +01:00
parent 2aea95210e
commit 8cf6e764ad
2 changed files with 361 additions and 0 deletions

View File

@ -11,6 +11,8 @@ use std::io::ErrorKind;
use std::os::unix::io::AsRawFd;
pub mod timer;
pub fn file_set_contents<P: AsRef<Path>>(
path: P,
data: &[u8],