Feat C++ API
A feature engineering automation tool
FT::Util::Timer Class Reference

class for timing things. More...

#include <utils.h>

Public Member Functions

 Timer (bool run=false)
 
void Reset ()
 
std::chrono::duration< float > Elapsed () const
 

Private Types

typedef std::chrono::high_resolution_clock high_resolution_clock
 
typedef std::chrono::seconds seconds
 

Private Attributes

high_resolution_clock::time_point _start
 

Friends

template<typename T , typename Traits >
std::basic_ostream< T, Traits > & operator<< (std::basic_ostream< T, Traits > &out, const Timer &timer)
 

Detailed Description

class for timing things.

Definition at line 103 of file utils.h.

Member Typedef Documentation

◆ high_resolution_clock

typedef std::chrono::high_resolution_clock FT::Util::Timer::high_resolution_clock
private

Definition at line 105 of file utils.h.

◆ seconds

typedef std::chrono::seconds FT::Util::Timer::seconds
private

Definition at line 107 of file utils.h.

Constructor & Destructor Documentation

◆ Timer()

FT::Util::Timer::Timer ( bool  run = false)
explicit

Definition at line 202 of file utils.cc.

Member Function Documentation

◆ Elapsed()

std::chrono::duration< float > FT::Util::Timer::Elapsed ( ) const

Definition at line 211 of file utils.cc.

◆ Reset()

void FT::Util::Timer::Reset ( )

Definition at line 207 of file utils.cc.

Friends And Related Function Documentation

◆ operator<<

template<typename T , typename Traits >
std::basic_ostream<T, Traits>& operator<< ( std::basic_ostream< T, Traits > &  out,
const Timer timer 
)
friend

Definition at line 117 of file utils.h.

Member Data Documentation

◆ _start

high_resolution_clock::time_point FT::Util::Timer::_start
private

Definition at line 124 of file utils.h.


The documentation for this class was generated from the following files: