Stride Reference Manual  1.0
stride::util::TimeToString Struct Reference

Utilities to tag clocks and to reformat number of ticks to a string. More...

#include <TimeToString.h>

Collaboration diagram for stride::util::TimeToString:
Collaboration graph

Static Public Member Functions

static std::string toColonString (std::chrono::seconds d)
 Produce string in hh:mm:ss format. More...
 
static std::string toColonString (std::chrono::milliseconds d)
 Produce string in hh:mm:ss:mus format. More...
 
static std::string toColonString (std::chrono::microseconds d)
 Produce string in hh:mm:ss:ms:mus format. More...
 
static std::string toColonString (std::chrono::nanoseconds d)
 Produce string in hh:mm:ss:ms:mus:ns format. More...
 

Detailed Description

Utilities to tag clocks and to reformat number of ticks to a string.

Definition at line 34 of file TimeToString.h.

Member Function Documentation

static std::string stride::util::TimeToString::toColonString ( std::chrono::seconds  d)
inlinestatic

Produce string in hh:mm:ss format.

Definition at line 36 of file TimeToString.h.

Referenced by stride::util::Stopwatch< T >::toString().

static std::string stride::util::TimeToString::toColonString ( std::chrono::milliseconds  d)
inlinestatic

Produce string in hh:mm:ss:mus format.

Definition at line 51 of file TimeToString.h.

static std::string stride::util::TimeToString::toColonString ( std::chrono::microseconds  d)
inlinestatic

Produce string in hh:mm:ss:ms:mus format.

Definition at line 67 of file TimeToString.h.

static std::string stride::util::TimeToString::toColonString ( std::chrono::nanoseconds  d)
inlinestatic

Produce string in hh:mm:ss:ms:mus:ns format.

Definition at line 84 of file TimeToString.h.


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