MCPcopy Create free account
hub / github.com/endbasic/endbasic / monotonic

Method monotonic

web/src/datetime.rs:84–86  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

82#[async_trait(?Send)]
83impl endbasic_std::datetime::DateTime for WebDateTime {
84 fn monotonic(&self) -> Duration {
85 Duration::from_secs_f64(current_time_millis() / 1000.0)
86 }
87
88 async fn sleep(&self, d: Duration) -> Result<(), String> {
89 let ms = d.as_millis();

Callers

nothing calls this directly

Calls 1

current_time_millisFunction · 0.85

Tested by

no test coverage detected