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. | |
Macros | |
#define | _TIME_SHIELD_TIME_UTILS_HPP_INCLUDED |
Functions | |
const struct timespec | time_shield::get_timespec_impl () noexcept |
Get the current timespec. | |
template<class T = int> | |
const T | time_shield::ns_of_sec () noexcept |
Get the nanosecond part of the current second. | |
template<class T = int> | |
const T | time_shield::us_of_sec () noexcept |
Get the microsecond part of the current second. | |
template<class T = int> | |
const T | time_shield::ms_of_sec () noexcept |
Get the millisecond part of the current second. | |
const ts_t | time_shield::ts () noexcept |
Get the current UTC timestamp in seconds. | |
const ts_t | time_shield::timestamp () noexcept |
Get the current UTC timestamp in seconds. | |
const fts_t | time_shield::fts () noexcept |
Get the current UTC timestamp in floating-point seconds. | |
const fts_t | time_shield::ftimestamp () noexcept |
Get the current UTC timestamp in floating-point seconds. | |
const ts_ms_t | time_shield::ts_ms () noexcept |
Get the current UTC timestamp in milliseconds. | |
const ts_ms_t | time_shield::timestamp_ms () noexcept |
Get the current UTC timestamp in milliseconds. | |
const ts_ms_t | time_shield::now () noexcept |
Get the current UTC timestamp in milliseconds. | |
const ts_us_t | time_shield::ts_us () noexcept |
Get the current UTC timestamp in microseconds. | |
const ts_us_t | time_shield::timestamp_us () noexcept |
Get the current UTC timestamp in microseconds. | |
Header file with time-related utility functions.
This file contains various functions used for time calculations and conversions.
Definition in file time_utils.hpp.
#define _TIME_SHIELD_TIME_UTILS_HPP_INCLUDED |
Definition at line 7 of file time_utils.hpp.