2019-09-30 03:58:53 -05:00
|
|
|
//! FIXME: write short doc here
|
|
|
|
|
2019-09-20 12:38:16 -05:00
|
|
|
#[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)
|
|
|
|
}
|
|
|
|
}
|