Skip to main content

attach_current_time

Function attach_current_time 

Source
pub fn attach_current_time(record: &ExecutionRecord) -> Option<String>
Expand description

Compute a currentTime value for a record if its status is executing. Returns None for completed records. Wrapping this in a helper makes it easy to attach the same timestamp to all output formats and to test the behavior deterministically.