summaryrefslogtreecommitdiff
path: root/decoder/cdec.cc
diff options
context:
space:
mode:
authorandrea gesmundo <andrea.gesmundo@gmail.com>2011-07-08 15:33:47 +0200
committerandrea gesmundo <andrea.gesmundo@gmail.com>2011-07-08 15:33:47 +0200
commitced7471ef004235e4ebef5247c0bdb77252d0aef (patch)
treed515ef83f5aa6272dd383ebb09756cd60f8fe1d3 /decoder/cdec.cc
parent85b7e8ae194d98ca85da1692e2679db8defff91b (diff)
add cp time measure (def macro)
Diffstat (limited to 'decoder/cdec.cc')
-rw-r--r--decoder/cdec.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/decoder/cdec.cc b/decoder/cdec.cc
index 5c40f56e..c671af57 100644
--- a/decoder/cdec.cc
+++ b/decoder/cdec.cc
@@ -19,11 +19,19 @@ int main(int argc, char** argv) {
assert(*in);
string buf;
+#ifdef CP_TIME
+ clock_t time_cp(0);//, end_cp;
+#endif
while(*in) {
getline(*in, buf);
if (buf.empty()) continue;
decoder.Decode(buf);
}
+#ifdef CP_TIME
+ cerr << "Time required for Cube Pruning execution: "
+ << CpTime::Get()
+ << " seconds." << "\n\n";
+#endif
if (show_feature_dictionary) {
int num = FD::NumFeats();
for (int i = 1; i < num; ++i) {