logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

log4tango::TimeStamp

Author

       Generated automatically by Doxygen for log4tango from the source code.

Version 5.0.1                                    Fri Feb 14 2020                         log4tango::TimeStamp(3)

Constructor & Destructor Documentation

log4tango::TimeStamp::TimeStamp()
       Constructs a TimeStamp representing 'now'.

   log4tango::TimeStamp::TimeStamp(constTimeStamp&t)[inline]
       Copy Constructor.

   log4tango::TimeStamp::TimeStamp(unsignedintseconds,unsignedintmicroseconds=0)[inline]
       Constructs a TimeStamp representing the given offset since the epoch ( 00:00:00 1970/1/1 UTC).

Member Data Documentation

intlog4tango::TimeStamp::_micro_seconds[protected]intlog4tango::TimeStamp::_seconds[protected]TimeStamplog4tango::TimeStamp::_start_stamp[static],[protected]

Member Function Documentation

intlog4tango::TimeStamp::get_microseconds(void)const[inline]
       Returns the subsecond part of the TimeStamp in microseconds. The actual precision of this value depends
       on the platform and may be in the order of milliseconds rather than microseconds.

   intlog4tango::TimeStamp::get_milliseconds(void)const[inline]
       Returns the 'subseconds' part of the TimeStamp in milliseconds, get_milliseconds() == get_microseconds()
       / 1000.

   intlog4tango::TimeStamp::get_seconds(void)const[inline]
       Returns the 'seconds' part of the TimeStamp.

   staticconstTimeStamp&log4tango::TimeStamp::get_start_time(void)[inline],[static]
       Returns a TimeStamp representing the time at which the application started.

   voidlog4tango::TimeStamp::operator=(constTimeStamp&t)[inline]
       Operator=.

Name

       log4tango::TimeStamp

Synopsis

       #include <TimeStamp.hh>

   PublicMemberFunctionsTimeStamp ()
           Constructs a TimeStamp representing 'now'.
       TimeStamp (const TimeStamp &t)
           Copy Constructor.
       TimeStamp (unsigned int seconds, unsigned int microseconds=0)
           Constructs a TimeStamp representing the given offset since the epoch ( 00:00:00 1970/1/1 UTC).
       int get_seconds (void) const
           Returns the 'seconds' part of the TimeStamp.
       int get_milliseconds (void) const
           Returns the 'subseconds' part of the TimeStamp in milliseconds, get_milliseconds() ==
           get_microseconds() / 1000.
       int get_microseconds (void) const
           Returns the subsecond part of the TimeStamp in microseconds.
       void operator= (const TimeStamp &t)
           Operator=.

   StaticPublicMemberFunctions
       static const TimeStamp & get_start_time (void)
           Returns a TimeStamp representing the time at which the application started.

   ProtectedAttributes
       int _seconds
       int _micro_secondsStaticProtectedAttributes
       static TimeStamp_start_stamp

See Also