[mlpack-git] master: Definition of GetState(). (127de5f)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Dec 2 15:40:18 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/abd5fdc7f7ce73f10e983fac3749505bd67871d6...924425c35ddbf8c7c8c830ee8a67595909ed380e

>---------------------------------------------------------------

commit 127de5fb0f07a9a56afc04d6df5f37a6640c8f15
Author: Grzegorz Krajewski <krajekg at gmail.com>
Date:   Wed Dec 2 20:46:53 2015 +0100

    Definition of GetState().
    
    Returns timer state.


>---------------------------------------------------------------

127de5fb0f07a9a56afc04d6df5f37a6640c8f15
 src/mlpack/core/util/timers.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mlpack/core/util/timers.cpp b/src/mlpack/core/util/timers.cpp
index b6888fc..4323cb5 100644
--- a/src/mlpack/core/util/timers.cpp
+++ b/src/mlpack/core/util/timers.cpp
@@ -62,6 +62,11 @@ timeval Timers::GetTimer(const std::string& timerName)
   return timers[timerName];
 }
 
+bool Timers::GetState(std::string timerName)
+{
+  return timerState[timerName];
+}
+
 void Timers::PrintTimer(const std::string& timerName)
 {
   timeval& t = timers[timerName];



More information about the mlpack-git mailing list