cap-std-sync: export ctx components

This commit is contained in:
Pat Hickey
2021-01-30 13:38:44 -08:00
parent e940d31f95
commit b6cd7d84ad
3 changed files with 14 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ impl WasiMonotonicClock for MonotonicClock {
}
}
pub fn clocks() -> WasiClocks {
pub fn clocks_ctx() -> WasiClocks {
let system = Box::new(unsafe { SystemClock::new() });
let monotonic = unsafe { cap_std::time::MonotonicClock::new() };
let creation_time = monotonic.now();