Lugdunum  0.1.0
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
lug::System::Time Class Reference

#include <Time.hpp>

Collaboration diagram for lug::System::Time:
[legend]

Public Member Functions

 Time ()=default
 
 ~Time ()=default
 
 Time (const Time &time)
 
 Time (int64_t microseconds)
 
int64_t getMicroseconds () const
 
template<typename T = float>
getMilliseconds () const
 
template<typename T = float>
getSeconds () const
 
template<typename T >
getMilliseconds () const
 
template<typename T >
getSeconds () const
 

Static Public Member Functions

static Time getCurrentTime ()
 

Private Attributes

int64_t _microseconds {0}
 

Detailed Description

Definition at line 9 of file Time.hpp.

Constructor & Destructor Documentation

◆ Time() [1/3]

lug::System::Time::Time ( )
default

◆ ~Time()

lug::System::Time::~Time ( )
default

◆ Time() [2/3]

lug::System::Time::Time ( const Time time)

Definition at line 7 of file Time.cpp.

◆ Time() [3/3]

lug::System::Time::Time ( int64_t  microseconds)

Definition at line 9 of file Time.cpp.

Member Function Documentation

◆ getMicroseconds()

int64_t Time::getMicroseconds ( ) const
inline

Definition at line 1 of file Time.inl.

◆ getMilliseconds() [1/2]

template<typename T = float>
T lug::System::Time::getMilliseconds ( ) const

◆ getSeconds() [1/2]

template<typename T = float>
T lug::System::Time::getSeconds ( ) const

◆ getCurrentTime()

Time lug::System::Time::getCurrentTime ( )
static

Definition at line 11 of file Time.cpp.

◆ getMilliseconds() [2/2]

template<typename T >
T lug::System::Time::getMilliseconds ( ) const
inline

Definition at line 6 of file Time.inl.

◆ getSeconds() [2/2]

template<typename T >
T lug::System::Time::getSeconds ( ) const
inline

Definition at line 12 of file Time.inl.

Member Data Documentation

◆ _microseconds

int64_t lug::System::Time::_microseconds {0}
private

Definition at line 28 of file Time.hpp.


The documentation for this class was generated from the following files: