Skip to main content

get_system_time_libstd

Function get_system_time_libstd 

Source
pub extern "C" fn get_system_time_libstd() -> Instant
Expand description

Default implementation that gets the current system time.

On WASM targets std::time::Instant::now() panics, so we fall back to a zero-tick instant instead.