|
Time Shield Library
C++ library for working with time
|
Header file with time-related utility functions. More...
Go to the source code of this file.
Namespaces | |
| namespace | time_shield |
| Main namespace for the Time Shield library. | |
Functions | |
| struct timespec | time_shield::get_timespec_impl () noexcept |
| Get the current timespec. | |
| int64_t | time_shield::now_realtime_us () |
| Get current real time in microseconds using a hybrid method. | |
| template<class T = int> | |
| T | time_shield::ns_of_sec () noexcept |
| Get the nanosecond part of the current second. | |
| template<class T = int> | |
| T | time_shield::us_of_sec () noexcept |
| Get the microsecond part of the current second. | |
| template<class T = int> | |
| T | time_shield::ms_of_sec () noexcept |
| Get the millisecond part of the current second. | |
| ts_t | time_shield::ts () noexcept |
| Get the current UTC timestamp in seconds. | |
| ts_t | time_shield::timestamp () noexcept |
| Get the current UTC timestamp in seconds. | |
| fts_t | time_shield::fts () noexcept |
| Get the current UTC timestamp in floating-point seconds. | |
| fts_t | time_shield::ftimestamp () noexcept |
| Get the current UTC timestamp in floating-point seconds. | |
| ts_ms_t | time_shield::ts_ms () noexcept |
| Get the current UTC timestamp in milliseconds. | |
| ts_ms_t | time_shield::timestamp_ms () noexcept |
| Get the current UTC timestamp in milliseconds. | |
| ts_ms_t | time_shield::now () noexcept |
| Get the current UTC timestamp in milliseconds. | |
| ts_us_t | time_shield::ts_us () noexcept |
| Get the current UTC timestamp in microseconds. | |
| ts_us_t | time_shield::timestamp_us () noexcept |
| Get the current UTC timestamp in microseconds. | |
| double | time_shield::get_cpu_time () noexcept |
| Get the CPU time used by the current process. | |
Header file with time-related utility functions.
This file contains various functions used for time calculations and conversions.
Definition in file time_utils.hpp.