NanoTime::Ticks< Clock_, T > Struct Template Reference

Class to handle a tick value associated with a clock. More...

#include <NanoTime.h>

Collaboration diagram for NanoTime::Ticks< Clock_, T >:

Public Types

using Clock = Clock_
 

Public Member Functions

 Ticks (T ticks)
 
 operator T () const
 
String toString () const
 
template<Unit unit>
Time< T > as ()
 

Static Public Member Functions

static constexpr Clock clock ()
 

Public Attributes

ticks
 

Detailed Description

template<typename Clock_, typename T>
struct NanoTime::Ticks< Clock_, T >

Class to handle a tick value associated with a clock.

Member Typedef Documentation

◆ Clock

template<typename Clock_ , typename T >
using NanoTime::Ticks< Clock_, T >::Clock = Clock_

Constructor & Destructor Documentation

◆ Ticks()

template<typename Clock_ , typename T >
NanoTime::Ticks< Clock_, T >::Ticks ( ticks)
inline

Member Function Documentation

◆ as()

template<typename Clock_ , typename T >
template<Unit unit>
Time<T> NanoTime::Ticks< Clock_, T >::as ( )
inline

◆ clock()

template<typename Clock_ , typename T >
static constexpr Clock NanoTime::Ticks< Clock_, T >::clock ( )
inlinestaticconstexpr

◆ operator T()

template<typename Clock_ , typename T >
NanoTime::Ticks< Clock_, T >::operator T ( ) const
inline

◆ toString()

template<typename Clock_ , typename T >
String NanoTime::Ticks< Clock_, T >::toString ( ) const
inline

Member Data Documentation

◆ ticks

template<typename Clock_ , typename T >
T NanoTime::Ticks< Clock_, T >::ticks

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