X-Git-Url: https://harishankar.org/repos/?p=biaweb2.git;a=blobdiff_plain;f=biaweb.cpp;h=2ed34fb693da0533776208084b1c7d7f43e5c1ff;hp=22e41213c342de346a459c7fe46133227186956f;hb=eda0b06c5328e232e12e0535528a528493caa90a;hpb=44d5fb1ff24147859c5f198dd47f6956ec5fea51 diff --git a/biaweb.cpp b/biaweb.cpp index 22e4121..2ed34fb 100644 --- a/biaweb.cpp +++ b/biaweb.cpp @@ -36,11 +36,16 @@ int main (int argc, char *argv[]) { // // else { // // std::cout << "Usage: " << argv[0] << "
" << std::endl; + std::chrono::steady_clock::time_point t1 (std::chrono::steady_clock::now()); DocumentTree tree (""); tree.document_tree_builder ("Test/Reviews"); tree.visualize_tree (); - tree.create_tree_html ("templates", - "Test/Out"); + Template tpl ("templates"); + tree.create_tree_html (&tpl, "Test/Out"); + std::chrono::steady_clock::time_point t2 (std::chrono::steady_clock::now()); + std::chrono::duration dur (t2 - t1); + std::cout << dur.count () << std::endl; + // // } // Document doc;