blob: 592dddf44b119146399bcc5fcde6cdcfc7ce753c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#[cfg(not(feature = "wasm"))]
pub use std::time::Instant;
#[cfg(feature = "wasm")]
#[derive(Clone, Copy, Debug)]
pub struct Instant;
#[cfg(feature = "wasm")]
impl Instant {
pub fn now() -> Self {
Self
}
pub fn elapsed(&self) -> std::time::Duration {
std::time::Duration::new(0, 0)
}
}
|