curfil  ..
 All Classes Functions Variables Typedefs Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
curfil::utils::Profile Class Reference

Used to profile different stages of training and prediction. More...

#include <utils.h>

Public Member Functions

 Profile (const std::string &name)
double getSeconds ()

Static Public Member Functions

static bool isEnabled ()
static void setEnabled (bool enable)
 enabling the profile

Detailed Description

Used to profile different stages of training and prediction.

Definition at line 124 of file utils.h.

Constructor & Destructor Documentation

curfil::utils::Profile::Profile ( const std::string &  name)
inline
Parameters
nameprofile name

Definition at line 129 of file utils.h.

Member Function Documentation

double curfil::utils::Profile::getSeconds ( )
inline
Returns
the timer duration in seconds

Definition at line 143 of file utils.h.

static bool curfil::utils::Profile::isEnabled ( )
inlinestatic
Returns
whether the profile is enabled

Definition at line 150 of file utils.h.


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