[mlpack-svn] r10316 - in mlpack/trunk/src/mlpack/core: io kernels utilities
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Nov 17 13:50:08 EST 2011
Author: mamidon
Date: 2011-11-17 13:50:07 -0500 (Thu, 17 Nov 2011)
New Revision: 10316
Modified:
mlpack/trunk/src/mlpack/core/io/cli.cpp
mlpack/trunk/src/mlpack/core/kernels/lmetric.cpp
mlpack/trunk/src/mlpack/core/utilities/timers.cpp
Log:
Working copy SVN metadata is broken..
Modified: mlpack/trunk/src/mlpack/core/io/cli.cpp
===================================================================
--- mlpack/trunk/src/mlpack/core/io/cli.cpp 2011-11-17 18:06:41 UTC (rev 10315)
+++ mlpack/trunk/src/mlpack/core/io/cli.cpp 2011-11-17 18:50:07 UTC (rev 10316)
@@ -59,7 +59,7 @@
did_parse(false), doc(&empty_program_doc) {
return;
}
-
+
CLI::~CLI() {
// Terminate the program timer.
Timers::Stop("total_time");
Modified: mlpack/trunk/src/mlpack/core/kernels/lmetric.cpp
===================================================================
--- mlpack/trunk/src/mlpack/core/kernels/lmetric.cpp 2011-11-17 18:06:41 UTC (rev 10315)
+++ mlpack/trunk/src/mlpack/core/kernels/lmetric.cpp 2011-11-17 18:50:07 UTC (rev 10316)
@@ -79,4 +79,4 @@
}
}; // namespace kernel
-}; // namespace mlpack
+}; // namespace mlpack
Modified: mlpack/trunk/src/mlpack/core/utilities/timers.cpp
===================================================================
--- mlpack/trunk/src/mlpack/core/utilities/timers.cpp 2011-11-17 18:06:41 UTC (rev 10315)
+++ mlpack/trunk/src/mlpack/core/utilities/timers.cpp 2011-11-17 18:50:07 UTC (rev 10316)
@@ -13,12 +13,12 @@
return timers;
}
-timeval Timers::GetTimer(const char* timerName) {
+timeval Timers::Get(const char* timerName) {
std::string name(timerName);
return timers[name];
}
-void Timers::PrintTimer(const char* timerName) {
+void Timers::Print(const char* timerName) {
std::string name=timerName;
timeval&t=timers[name];
Log::Info<<t.tv_sec<<"."<<std::setw(6)<<std::setfill('0')
@@ -63,7 +63,7 @@
Log::Info << std::endl;
}
-void Timers::StartTimer(const char* timerName) {
+void Timers::Start(const char* timerName) {
//Don't want to actually document the timer
std::string name(timerName);
timeval tmp;
@@ -79,7 +79,7 @@
timers[name] = tmp;
}
-void Timers::StopTimer(const char* timerName) {
+void Timers::Stop(const char* timerName) {
std::string name(timerName);
timeval delta, b, a = timers[name];
@@ -94,7 +94,7 @@
}
#ifdef _WIN32
-void Timers::FileTimeToTimeVal(timeval* tv) {
+void Timers::FileTimeToTimeVal(timeval* tv) {
FILETIME ftime;
uint64_t ptime = 0;
//Acquire the file time
More information about the mlpack-svn
mailing list