log4shib::TimeStamp(3)
πΈ NAME πΈ
Okay so this is the log4shib::TimeStamp(3) page from the Library Functions Manual, bestie π. It's literally a simple TimeStamp abstraction β that's the whole name, that's the whole vibe, and yes, it ate.
β¨ SYNOPSIS β¨
Start here, no cap:
#include <TimeStamp.hh>
π Public Member Functions
TimeStamp ()β constructs aTimeStamprepresenting 'now'. Main character energy: it just knows what time it is.TimeStamp (unsigned int seconds, unsigned int microSeconds=0)β constructs aTimeStamprepresenting the given offset since the epoch (00:00:00 1970/1/1 UTC). Iconic time math.int getSeconds () constβ returns the 'seconds' part of theTimeStamp.int getMilliSeconds () constβ returns the 'subseconds' part of theTimeStampin milliseconds, and the math is literallygetMilliSeconds() == getMicroSeconds() / 1000.int getMicroSeconds () constβ returns the subsecond part of theTimeStampin microseconds.
π«Ά Static Public Member Functions
static const TimeStamp & getStartTime ()β returns aTimeStamprepresenting the time at which the application started. A little origin-story moment π.
π Protected Attributes
int _secondsβ protected attribute, bestie.int _microSecondsβ also protected, also part of the subsecond situation.
β Static Protected Attributes
static TimeStamp _startStampβ static protected attribute, very "class-level secret" of it.
π Detailed Description π
A simple TimeStamp abstraction. That's it. That's the description. It's giving minimalist queen π
.
π§ Constructor & Destructor Documentation π§
log4shib::TimeStamp::TimeStamp ()
Constructs a TimeStamp representing 'now'. Literally the now-est now.
log4shib::TimeStamp::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). Epoch girlie forever π¦.
π¦ Member Function Documentation π¦
int log4shib::TimeStamp::getMicroSeconds () const [inline]
Returns the subsecond part of the TimeStamp in microseconds. Important caveat, bestie: the actual precision of this value depends on the platform and may be in the order of milliseconds rather than microseconds. So likeβ¦ microseconds-ish, not always full micro precision π.
int log4shib::TimeStamp::getMilliSeconds () const [inline]
Returns the 'subseconds' part of the TimeStamp in milliseconds, and the equation is exactly getMilliSeconds() == getMicroSeconds() / 1000. Math ate, fr fr.
int log4shib::TimeStamp::getSeconds () const [inline]
Returns the 'seconds' part of the TimeStamp. Simple, clean, iconic.
const TimeStamp & log4shib::TimeStamp::getStartTime () [inline], [static]
Returns a TimeStamp representing the time at which the application started. It's [inline], it's [static], it's the app's birthday basically π.
π Member Data Documentation π
int log4shib::TimeStamp::_microSeconds[protected] β protected member data, microsecond division.int log4shib::TimeStamp::_seconds[protected] β protected member data, seconds division.TimeStamp log4shib::TimeStamp::_startStamp[static], [protected] β static protected member data, the start-time stamp itself.
π Author π
Generated automatically by Doxygen for log4shib from the source code. Very demure, very automatic π«Ά.
That's the whole page, babe β¨ β from log4shib Version 2.0.1, and the footer didn't give a separate date to quote, so we're not inventing one. Mwah π
π¦ where this page comes from
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms