Module time

Module time 

Source
Expand description

Conversion between ticks and more convenient date/time representations

Structs§

ConvertTicks
ConvertTicks helps converting between a process’s tick count and more convenient date/time representations
TimeRange
A time range, with a beginning and an end.

Functions§

datetime_to_scalar
Converts a DateTime<Utc> to a ScalarValue.
get_tsc_frequency_inverse_ms
Returns the inverse of the TSC frequency in milliseconds.
get_tsc_frequency_inverse_ns
Returns the inverse of the TSC frequency in nanoseconds.
make_time_converter_from_block_meta
Creates a ConvertTicks from a block’s metadata.
make_time_converter_from_db
Creates a ConvertTicks from a database connection.
make_time_converter_from_latest_timing
Creates a ConvertTicks using the latest timing information from the process. This should be used instead of per-block timing to ensure consistent tick conversion across all blocks from the same process.