Skip to main content

ralph_workflow/phases/runtime/
timing.rs

1use std::time::{Duration, Instant};
2
3pub fn capture_time() -> Instant {
4    Instant::now()
5}
6
7pub fn elapsed_seconds(start: Instant) -> u64 {
8    start.elapsed().as_secs()
9}
10
11pub fn elapsed(start: Instant) -> Duration {
12    start.elapsed()
13}