Skip to content

Glossary: Data Structures and Algorithms in Rust

Instant

Also written: Instant::now(), elapsed, as_secs_f64

A std::time type that reads a precise clock. Call .elapsed() later to get the time passed, and .as_secs_f64() to see it in seconds.

Where the book teaches it

Related terms

rustc -O