We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5793e0 commit 69f6423Copy full SHA for 69f6423
vm/src/stdlib/time.rs
@@ -121,18 +121,11 @@ mod decl {
121
Ok(())
122
}
123
124
- #[cfg(not(target_os = "wasi"))]
125
#[pyfunction]
126
fn time_ns(vm: &VirtualMachine) -> PyResult<u64> {
127
Ok(duration_since_system_now(vm)?.as_nanos() as u64)
128
129
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
-
136
137
pub fn time(vm: &VirtualMachine) -> PyResult<f64> {
138
_time(vm)
0 commit comments