13 #ifndef MLPACK_CORE_UTILITIES_TIMERS_HPP    14 #define MLPACK_CORE_UTILITIES_TIMERS_HPP    22   #if !defined(HAVE_UINT64_T)    23     #if SIZEOF_UNSIGNED_LONG == 8    24       typedef unsigned long uint64_t;
    26       typedef unsigned long long  uint64_t;
    27     #endif  // SIZEOF_UNSIGNED_LONG    28   #endif  // HAVE_UINT64_T    81   std::map<std::string, std::chrono::microseconds>& GetAllTimers();
    88   std::chrono::microseconds GetTimer(
const std::string& timerName);
   125   std::map<std::string, std::chrono::microseconds> 
timers;
   129   std::map<std::string, std::chrono::high_resolution_clock::time_point>
   132   std::chrono::high_resolution_clock::time_point GetTime();
   137 #endif // MLPACK_CORE_UTILITIES_TIMERS_HPP std::map< std::string, bool > timerState
A map that contains whether or not each timer is currently running. 
std::map< std::string, std::chrono::microseconds > timers
A map of all the timers that are being tracked. 
Timers()
Nothing to do for the constructor. 
Linear algebra utility functions, generally performed on matrices or vectors. 
std::map< std::string, std::chrono::high_resolution_clock::time_point > timerStartTime
A map for the starting values of the timers. 
static std::chrono::microseconds Get(const std::string &name)
Get the value of the given timer. 
static void Start(const std::string &name)
Start the given timer. 
The timer class provides a way for mlpack methods to be timed. 
static void Stop(const std::string &name)
Stop the given timer. 
test cpp RESULT_VARIABLE MEX_RESULT_TRASH OUTPUT_VARIABLE MEX_OUTPUT ERROR_VARIABLE MEX_ERROR_TRASH string(REGEX MATCH"Warning: You are using"MEX_WARNING"${MEX_OUTPUT}") if(MEX_WARNING) string(REGEX REPLACE".*using [a-zA-Z]* version \"([0-9.]*)[^\"]*\".*""\\1"OTHER_COMPILER_VERSION"$