Browse Source

use libc types in Instant impl

pull/10/head
Fenrir 8 years ago
parent
commit
2121f1782f
  1. 4
      ctr-std/src/sys/unix/time.rs

4
ctr-std/src/sys/unix/time.rs

@ -138,8 +138,8 @@ mod inner { @@ -138,8 +138,8 @@ mod inner {
let ms = monotonic_ms();
let s = libc::timeval {
tv_sec: (ms / 1_000_000) as i32,
tv_usec: (ms % 1_000_000) as i32,
tv_sec: (ms / 1_000_000) as libc::time_t,
tv_usec: (ms % 1_000_000) as libc::c_long,
};
return Instant::from(s)
}

Loading…
Cancel
Save