Module common

Source
Expand description

Common utilities and shared types used across the system

This module contains types and functions that are used by multiple components of the HFT system.

Enums§

LogLevel
System-wide log levels

Functions§

current_time_ns
Get current time in nanoseconds using high-precision quanta clock
is_stale
Check if a timestamp is older than specified duration using high-precision clock
milliseconds_to_nanoseconds
Convert milliseconds to nanoseconds
nanoseconds_to_milliseconds
Convert nanoseconds to milliseconds

Type Aliases§

Result
Result type for errors with context