1.4.0
CCC
 
Timer.hpp File Reference
#include "gstlearn_export.hpp"
#include "geoslib_define.h"
#include <chrono>

Classes

class  Timer
 

Typedefs

typedef std::chrono::high_resolution_clock hrc
 
typedef std::chrono::milliseconds ms
 
typedef std::chrono::duration< double > sec
 

Functions

GSTLEARN_EXPORT void time_start (void)
 
GSTLEARN_EXPORT void time_reset (void)
 
GSTLEARN_EXPORT void time_chunk_add (const char *call_name)
 
GSTLEARN_EXPORT void time_report (void)
 

Typedef Documentation

◆ hrc

typedef std::chrono::high_resolution_clock hrc

◆ ms

typedef std::chrono::milliseconds ms

◆ sec

typedef std::chrono::duration<double> sec

Function Documentation

◆ time_chunk_add()

GSTLEARN_EXPORT void time_chunk_add ( const char *  call_name)

Initialize a Time Chunk

Parameters
[in]call_nameName of the Chunk

◆ time_report()

GSTLEARN_EXPORT void time_report ( void  )

Report the Time Stats

◆ time_reset()

GSTLEARN_EXPORT void time_reset ( void  )

Reset the Time

◆ time_start()

GSTLEARN_EXPORT void time_start ( void  )

Initialize the Timer