mn_timespan.hpp
Go to the documentation of this file.
59 basic_timespan(uint16_t days, uint8_t hours, uint8_t minutes, uint8_t seconds, uint16_t microSeconds = 0);
209 self_type& assign(uint16_t days, uint8_t hours, uint8_t minutes, uint8_t seconds, uint16_t microSeconds);
This class represents a time span (using microseconds)
Definition: mn_timespan.hpp:35
int_type get_total_seconds() const
Get the total number of seconds.
Definition: mn_timespan.cpp:177
uint8_t get_seconds() const
Get the number of (0 to 59) seconds.
Definition: mn_timespan.cpp:142
basic_timespan()
Construct a new time span and initializes it to zero.
Definition: mn_timespan.cpp:63
self_type operator+(const self_type &other) const
Definition: mn_timespan.hpp:181
self_type & operator=(const self_type ×pan)
Definition: mn_timespan.cpp:198
bool operator==(const self_type &ts) const
Definition: mn_timespan.hpp:131
uint16_t get_days() const
Get the number of days.
Definition: mn_timespan.cpp:121
bool operator>(const self_type &ts) const
Definition: mn_timespan.hpp:144
self_type operator-(const self_type &other) const
Definition: mn_timespan.hpp:184
bool operator!=(const self_type &ts) const
Definition: mn_timespan.hpp:137
int_type get_total_milliseconds() const
Get the total number of milliseconds.
Definition: mn_timespan.cpp:184
uint8_t get_hours() const
Get the number of (0 to 23) hours.
Definition: mn_timespan.cpp:128
int_type get_microseconds() const
Get the number of microseconds.
Definition: mn_timespan.cpp:156
bool operator<=(const self_type &ts) const
Definition: mn_timespan.hpp:162
static basic_timespan from_ticks(const unsigned int &ticks)
Definition: mn_timespan.cpp:101
self_type & operator-=(const self_type &other)
Definition: mn_timespan.hpp:175
int_type get_total_microseconds() const
Get the total number of microseconds.
Definition: mn_timespan.cpp:191
self_type & assign(uint16_t days, uint8_t hours, uint8_t minutes, uint8_t seconds, uint16_t microSeconds)
Assigns a new time span.
Definition: mn_timespan.cpp:221
bool operator<(const self_type &ts) const
Definition: mn_timespan.hpp:156
uint8_t get_minutes() const
Get the number of (0 to 59) minutes.
Definition: mn_timespan.cpp:135
int_type get_total_hours() const
Get the total number of hours.
Definition: mn_timespan.cpp:163
static basic_timespan now()
Get the current time.
Definition: mn_timespan.cpp:91
int_type get_total_minutes() const
Get the total number of minutes.
Definition: mn_timespan.cpp:170
bool operator>=(const self_type &ts) const
Definition: mn_timespan.hpp:150
void swap(self_type &other)
Swap this time span with a other time span.
Definition: mn_timespan.hpp:202
self_type & operator+=(const self_type &other)
Definition: mn_timespan.hpp:169
uint16_t get_milliseconds() const
Get the number of milliseconds.
Definition: mn_timespan.cpp:149
Basic algorithmens This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniT...
Definition: mn_allocator_typetraits.hpp:25