From f2989ef661bdb73eabee174ba5c956e2aba5540c Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Mon, 23 Mar 2015 11:03:11 +0100
Subject: misc changes
---
src/fast_weaver.cc | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
(limited to 'src/fast_weaver.cc')
diff --git a/src/fast_weaver.cc b/src/fast_weaver.cc
index 81740e5..bdf21f8 100644
--- a/src/fast_weaver.cc
+++ b/src/fast_weaver.cc
@@ -4,22 +4,35 @@
int
main(int argc, char** argv)
{
+ clock_t begin_total = clock();
+
+ // read hg
+ clock_t begin_read = clock();
Hg::Hypergraph hg;
G::Vocabulary y;
G::Grammar g;
Hg::io::read(hg, g.rules, y, argv[1]);
//Hg::io::manual(hg, g.rules);
+ clock_t end_read = clock();
+ double elapsed_secs_read = double(end_read - begin_read) / CLOCKS_PER_SEC;
+ cerr << "read " << elapsed_secs_read << " s" << endl;
+
+ // viterbi
+ clock_t begin_viterbi = clock();
Hg::Path p;
Hg::viterbi_path(hg, p);
vector