log4shib::TimeStamp(3)

πŸ“¦ version 2.0.1, in opensuse-leap 16.0

🌸 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 a TimeStamp representing 'now'. Main character energy: it just knows what time it is.
  • 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). Iconic time math.
  • int getSeconds () const β€” returns the 'seconds' part of the TimeStamp.
  • int getMilliSeconds () const β€” returns the 'subseconds' part of the TimeStamp in milliseconds, and the math is literally getMilliSeconds() == getMicroSeconds() / 1000.
  • int getMicroSeconds () const β€” returns the subsecond part of the TimeStamp in microseconds.

🫢 Static Public Member Functions

  • static const TimeStamp & getStartTime () β€” returns a TimeStamp representing 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 πŸ’‹