other versions
- jessie 1.0.10-1
mlpack::Timers(3) | MLPACK | mlpack::Timers(3) |
NAME¶
mlpack::Timers -SYNOPSIS¶
Public Member Functions¶
Timers ()
Private Member Functions¶
void FileTimeToTimeVal (timeval *tv)
Private Attributes¶
std::map< std::string, timeval > timers
Detailed Description¶
Definition at line 105 of file timers.hpp.Constructor & Destructor Documentation¶
mlpack::Timers::Timers () [inline]¶
Nothing to do for the constructor. Definition at line 109 of file timers.hpp.Member Function Documentation¶
void mlpack::Timers::FileTimeToTimeVal (timeval *tv) [private]¶
std::map<std::string, timeval>& mlpack::Timers::GetAllTimers ()¶
Returns a copy of all the timers used via this interface.void mlpack::Timers::GetTime (timeval *tv) [private]¶
timeval mlpack::Timers::GetTimer (const std::string &timerName)¶
Returns a copy of the timer specified. Parameters:timerName The name of the timer in question.
void mlpack::Timers::PrintTimer (const std::string &timerName)¶
Prints the specified timer. If it took longer than a minute to complete the timer will be displayed in days, hours, and minutes as well. Parameters:timerName The name of the timer in question.
void mlpack::Timers::StartTimer (const std::string &timerName)¶
* Initializes a timer, available like a normal value specified on * the command line. Timers are of type timeval. If a timer is started, then stopped, then re-started, then stopped, the final timer value will be the length of both runs of the timer. * * Parameters:timerName The name of the timer in question.
void mlpack::Timers::StopTimer (const std::string &timerName)¶
* Halts the timer, and replaces it's value with * the delta time from it's start * *. Parameters:timerName The name of the timer in question.
Member Data Documentation¶
std::map<std::string, timeval> mlpack::Timers::timers [private]¶
Definition at line 150 of file timers.hpp.Author¶
Generated automatically by Doxygen for MLPACK from the source code.Tue Sep 9 2014 | Version 1.0.10 |