summaryrefslogtreecommitdiff
path: root/src/timing_stats.cc
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2009-12-14 20:35:11 -0500
committerChris Dyer <redpony@gmail.com>2009-12-14 20:35:11 -0500
commit851e389dffdd6996ea32d70defb8906de80b9edc (patch)
tree8c68ee77205badc056b8ab5b332e67e3e98017df /src/timing_stats.cc
parentdc6930c00b4b276883280cff1ed6dcd9ddef03c7 (diff)
few small fixes of alignment tools, add new orthographic similarity feature for word aligner, final naming of directories, libraries in cdec
Diffstat (limited to 'src/timing_stats.cc')
-rw-r--r--src/timing_stats.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/timing_stats.cc b/src/timing_stats.cc
deleted file mode 100644
index 85b95de5..00000000
--- a/src/timing_stats.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "timing_stats.h"
-
-#include <iostream>
-
-using namespace std;
-
-map<string, TimerInfo> Timer::stats;
-
-Timer::Timer(const string& timername) : start_t(clock()), cur(stats[timername]) {}
-
-Timer::~Timer() {
- ++cur.calls;
- const clock_t end_t = clock();
- const double elapsed = (end_t - start_t) / 1000000.0;
- cur.total_time += elapsed;
-}
-
-void Timer::Summarize() {
- for (map<string, TimerInfo>::iterator it = stats.begin(); it != stats.end(); ++it) {
- cerr << it->first << ": " << it->second.total_time << " secs (" << it->second.calls << " calls)\n";
- }
- stats.clear();
-}
-