DelatTime Project v1.0
Loading...
Searching...
No Matches
Timepiece::TimeSpan Struct Reference

A data type representing a span of time from days to nanoseconds. More...

#include <TimeSpan.hpp>

Collaboration diagram for Timepiece::TimeSpan:
Collaboration graph

Public Member Functions

template<typename T >
Count () const
 Get the total duration of this TimeSpan.
 

Public Attributes

das days { 0 }
 
hrs hours { 0 }
 
mins minutes { 0 }
 
secs seconds { 0 }
 
ms millis { 0 }
 
us micros { 0 }
 
ns nanos { 0 }
 

Detailed Description

This struct is inspired by the TimeSpan struct found in the C# language.

See also

Member Function Documentation

◆ Count()

template<typename T >
T Timepiece::TimeSpan::Count ( ) const
inline
Template Parameters
TOne of the available units defined in the Units of duration group.
Returns
The total amount of time represented by the unit T.

The documentation for this struct was generated from the following file: