pub(crate) fn current_instant() -> Instant
Return the current Instant.
(This is a separate method for compatibility with wasm32.)