xgboost

Public Types | Public Member Functions | Public Attributes | List of all members
xgboost::common::Timer Struct Reference

`#include <timer.h>`

Collaboration diagram for xgboost::common::Timer:

## Public Types
using | ClockT = std::chrono::high_resolution_clock
using | TimePointT = std::chrono::high_resolution_clock::time_point
using | DurationT = std::chrono::high_resolution_clock::duration
using | SecondsT = std::chrono::duration< double >

## Public Member Functions
| Timer ()
void | Reset ()
void | Start ()
void | Stop ()
double | ElapsedSeconds () const
void | PrintElapsed (std::string label)

## Public Attributes
TimePointT | start
DurationT | elapsed

## Member Typedef Documentation

## ◆ ClockT

using xgboost::common::Timer::ClockT = std::chrono::high_resolution_clock

## ◆ DurationT

using xgboost::common::Timer::DurationT = std::chrono::high_resolution_clock::duration

## ◆ SecondsT

using xgboost::common::Timer::SecondsT = std::chrono::duration<double>

## ◆ TimePointT

using xgboost::common::Timer::TimePointT = std::chrono::high_resolution_clock::time_point

## Constructor & Destructor Documentation

## ◆ Timer()

xgboost::common::Timer::Timer | ( |  | ) |
| inline

## Member Function Documentation

## ◆ ElapsedSeconds()

double xgboost::common::Timer::ElapsedSeconds | ( |  | ) | const
| inline

## ◆ PrintElapsed()

void xgboost::common::Timer::PrintElapsed | ( | std::string | label | ) |
| inline

## ◆ Reset()

void xgboost::common::Timer::Reset | ( |  | ) |
| inline

## ◆ Start()

void xgboost::common::Timer::Start | ( |  | ) |
| inline

## ◆ Stop()

void xgboost::common::Timer::Stop | ( |  | ) |
| inline

## Member Data Documentation

## ◆ elapsed

DurationT xgboost::common::Timer::elapsed

## ◆ start

TimePointT xgboost::common::Timer::start

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

- /home/runner/work/xgboost/xgboost/src/common/timer.h