FARGOS/VISTA Object Management Environment Core
..
|
Representation of UNITS-since-POSIX-epoch. This is an unambiguous time reference; there is no locale-specific attribute. More...
#include <time_point.hpp>
Public Member Functions | |
uint64_t | convertToCustomEpochUnits (uint64_t desired_granularity=UNITS) const OME_ALWAYS_INLINE OME_ALWAYS_OPTIMIZE("-O3") |
Converts from a POSIXtimeInUnits to an arbitrary granularity. More... | |
POSIXtimeInUnits (time_t seconds, int64_t fractional, int skewByMinutes=0) OME_ALWAYS_INLINE OME_ALWAYS_OPTIMIZE("-O3") | |
Construct a POSIXtimeInUnits from seconds since the POSIX epoch. More... | |
POSIXtimeInUnits (const TimeWithNanoseconds time_ns, int skewByMinutes=0) OME_ALWAYS_INLINE OME_ALWAYS_OPTIMIZE("-O3") | |
Construct a POSIXtimeInUnits from a TimeWithNanoseconds structure. More... | |
template<unsigned int ALT_UNITS> | |
operator POSIXtimeInUnits< ALT_UNITS > () const OME_ALWAYS_INLINE | |
Cast operator to convert to alternate unit precision. More... | |
POSIXtimeInUnits< UNITS > & | operator= (const TimeWithNanoseconds time_ns) OME_ALWAYS_INLINE |
Assignment operator from TimeWithNanoseconds structure. More... | |
uint64_t | convertToNanosecondsSinceEpoch () const OME_ALWAYS_INLINE OME_ALWAYS_OPTIMIZE("-O3") |
Convert a POSIXtimeInUnits to nanoseconds since the POSIX epoch. More... | |
time_t | getSeconds () const OME_ALWAYS_INLINE OME_ALWAYS_OPTIMIZE("-O3") |
Convert a POSIXtimeInUnits to seconds since the POSIX epoch. More... | |
template<unsigned int ALT_UNITS> | |
bool | operator== (const POSIXtimeInUnits< ALT_UNITS > arg) const |
Equality comparison against a POSIXtimeInUnits of arbitrary granularity. More... | |
template<unsigned int ALT_UNITS> | |
bool | operator!= (const POSIXtimeInUnits< ALT_UNITS > arg) const |
Inequality comparison against a POSIXtimeInUnits of arbitrary granularity. More... | |
template<unsigned int ALT_UNITS> | |
bool | operator<= (const POSIXtimeInUnits< ALT_UNITS > arg) const |
Less-than-or-equal comparison against a POSIXtimeInUnits of arbitrary granularity. More... | |
template<unsigned int ALT_UNITS> | |
bool | operator>= (const POSIXtimeInUnits< ALT_UNITS > arg) const |
Greater-than-or-equal comparison against a POSIXtimeInUnits of arbitrary granularity. More... | |
template<unsigned int ALT_UNITS> | |
bool | operator< (const POSIXtimeInUnits< ALT_UNITS > arg) const |
Less-than comparison against a POSIXtimeInUnits of arbitrary granularity. More... | |
template<unsigned int ALT_UNITS> | |
bool | operator> (const POSIXtimeInUnits< ALT_UNITS > arg) const |
Greater-than comparison against a POSIXtimeInUnits of arbitrary granularity. More... | |
Static Public Member Functions | |
static POSIXtimeInUnits< UNITS > | getCurrentTime () OME_ALWAYS_INLINE |
Get the current time as units-since-the-POSIX epoch. More... | |
Protected Member Functions | |
void | assignFromTimeWithNanoseconds (const TimeWithNanoseconds time_ns, const int skewByMinutes=0) OME_ALWAYS_INLINE OME_ALWAYS_OPTIMIZE("-O3") |
Protected Attributes | |
uint64_t | time_in_units |
holds total UNITS since POSIX epoch More... | |
Representation of UNITS-since-POSIX-epoch. This is an unambiguous time reference; there is no locale-specific attribute.
|
inline |
Construct a POSIXtimeInUnits from seconds since the POSIX epoch.
seconds | specifies the number of seconds since the POSIX epoch. |
fractional | specifies the number of UNITS per second. |
skewByMinutes | is an optional parameter to allow the time to be skewed by the specified number of minutes. This is typically used to shift timezones. |
References POSIXtimeInUnits< UNITS >::time_in_units.
|
inlineexplicit |
Construct a POSIXtimeInUnits from a TimeWithNanoseconds structure.
time_ns | specifies the time as a TimeWithNanoseconds structure. |
skewByMinutes | is an optional parameter to allow the time to be skewed by the specified number of minutes. This is typically used to shift timezones. |
References POSIXtimeInUnits< UNITS >::assignFromTimeWithNanoseconds().
|
inlineprotected |
|
inline |
Converts from a POSIXtimeInUnits to an arbitrary granularity.
desired_granularity | specifies the desired granularity. |
References POSIXtimeInUnits< UNITS >::time_in_units.
Referenced by TimePointOfGranularity< UNITS >::TimePointOfGranularity().
|
inline |
Convert a POSIXtimeInUnits to nanoseconds since the POSIX epoch.
References POSIXtimeInUnits< UNITS >::time_in_units.
Referenced by addLogArg(), and LogMessageRecord::prepareBinaryRecord().
|
inlinestatic |
Get the current time as units-since-the-POSIX epoch.
|
inline |
Convert a POSIXtimeInUnits to seconds since the POSIX epoch.
References POSIXtimeInUnits< UNITS >::time_in_units.
Referenced by ReadBinaryLog::outputAssembledLine().
|
inline |
Inequality comparison against a POSIXtimeInUnits of arbitrary granularity.
arg | specifies the time to be compared |
References POSIXtimeInUnits< UNITS >::time_in_units.
|
inline |
Less-than comparison against a POSIXtimeInUnits of arbitrary granularity.
arg | specifies the time to be compared |
References POSIXtimeInUnits< UNITS >::time_in_units.
|
inline |
Less-than-or-equal comparison against a POSIXtimeInUnits of arbitrary granularity.
arg | specifies the time to be compared |
References POSIXtimeInUnits< UNITS >::time_in_units.
|
inline |
Assignment operator from TimeWithNanoseconds structure.
time_ns | specifies the time as a TimeWithNanoseconds structure. |
References POSIXtimeInUnits< UNITS >::assignFromTimeWithNanoseconds().
|
inline |
Equality comparison against a POSIXtimeInUnits of arbitrary granularity.
arg | specifies the time to be compared |
References POSIXtimeInUnits< UNITS >::time_in_units.
|
inline |
Greater-than comparison against a POSIXtimeInUnits of arbitrary granularity.
arg | specifies the time to be compared |
References POSIXtimeInUnits< UNITS >::time_in_units.
|
inline |
Greater-than-or-equal comparison against a POSIXtimeInUnits of arbitrary granularity.
arg | specifies the time to be compared |
References POSIXtimeInUnits< UNITS >::time_in_units.
|
protected |
holds total UNITS since POSIX epoch
Referenced by POSIXtimeInUnits< UNITS >::assignFromTimeWithNanoseconds(), POSIXtimeInUnits< UNITS >::convertToCustomEpochUnits(), POSIXtimeInUnits< UNITS >::convertToNanosecondsSinceEpoch(), POSIXtimeInUnits< UNITS >::getSeconds(), POSIXtimeInUnits< UNITS >::operator!=(), POSIXtimeInUnits< UNITS >::operator<(), POSIXtimeInUnits< UNITS >::operator<=(), POSIXtimeInUnits< UNITS >::operator==(), POSIXtimeInUnits< UNITS >::operator>(), POSIXtimeInUnits< UNITS >::operator>=(), and POSIXtimeInUnits< UNITS >::POSIXtimeInUnits().
![]() | Generated: Fri Jul 31 2020 18:19:16
Support Information |