usestd::time::Duration;usecrate::state::with_node;/// Returns the current time.
pubfnnow()->u128{with_node(|n|n.now())}/// Returns a future that will be resolved after the provided duration is passed.
pub async fnsleep(time: Duration){with_node(|n|n.sleep(time.as_nanos())).await;}