Skip to main content

src/utils/time

Centralized utility functions for time and formatting.

Remarksโ€‹

Provides consistent time formatting throughout the application with support for various time scales: milliseconds for precise measurements, seconds/minutes/hours for human-readable durations, and relative timestamps for recent events.

All functions handle edge cases gracefully and provide fallback values for invalid inputs. Time formatting is optimized for readability in monitoring contexts.

Type Aliasesโ€‹

Variablesโ€‹

Functionsโ€‹