Skip to content

Commit 0d1a025

Browse files
committed
Have time_ns for wasi
1 parent b829333 commit 0d1a025

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

vm/src/stdlib/time.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ mod decl {
127127
Ok(duration_since_system_now(vm)?.as_nanos() as u64)
128128
}
129129

130+
#[cfg(target_os = "wasi")]
131+
#[pyfunction]
132+
fn time_ns(_vm: &VirtualMachine) -> PyResult<u64> {
133+
unimplemented!("time.time_ns is not implemented yet for wasi");
134+
}
135+
130136
#[pyfunction]
131137
pub fn time(vm: &VirtualMachine) -> PyResult<f64> {
132138
_time(vm)

0 commit comments

Comments
 (0)