xgboost

Classes | Public Member Functions | List of all members
xgboost::common::Monitor Struct Reference

Timing utility used to measure total method execution time over the lifetime of the containing object. More...

`#include <timer.h>`

Collaboration diagram for xgboost::common::Monitor:

## Public Member Functions
| Monitor ()
| ~Monitor ()
void | Print () const
| Print all the statistics. More...
void | Init (std::string label)
void | Start (const std::string &name)
void | Stop (const std::string &name)

## Detailed Description

Timing utility used to measure total method execution time over the lifetime of the containing object.

## Constructor & Destructor Documentation

## ◆ Monitor()

xgboost::common::Monitor::Monitor | ( |  | ) |
| inline

## ◆ ~Monitor()

xgboost::common::Monitor::~Monitor | ( |  | ) |
| inline

## Member Function Documentation

## ◆ Init()

void xgboost::common::Monitor::Init | ( | std::string | label | ) |
| inline

## ◆ Print()

void xgboost::common::Monitor::Print | ( |  | ) | const

Print all the statistics.

## ◆ Start()

void xgboost::common::Monitor::Start | ( | const std::string & | name | ) |

## ◆ Stop()

void xgboost::common::Monitor::Stop | ( | const std::string & | name | ) |

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

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