Skip to content

Commit 69f6423

Browse files
committed
Try to have time_ns same as std
1 parent d5793e0 commit 69f6423

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

vm/src/stdlib/time.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,11 @@ mod decl {
121121
Ok(())
122122
}
123123

124-
#[cfg(not(target_os = "wasi"))]
125124
#[pyfunction]
126125
fn time_ns(vm: &VirtualMachine) -> PyResult<u64> {
127126
Ok(duration_since_system_now(vm)?.as_nanos() as u64)
128127
}
129128

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-
136129
#[pyfunction]
137130
pub fn time(vm: &VirtualMachine) -> PyResult<f64> {
138131
_time(vm)

0 commit comments

Comments
 (0)