4 #include "biawebdocumenttree.hpp"
5 using namespace biaweb
;
7 int main (int argc
, char *argv
[]) {
8 // Compute the speed of generating the document tree and output HTML from sources
9 std::chrono::steady_clock::time_point
t1 (std::chrono::steady_clock::now());
11 // An empty document tree
12 std::unique_ptr
<DocumentTree
> tree (new DocumentTree (""));
13 tree
.get()->document_tree_builder ("Test/Reviews");
14 std::cout
<< VISUALIZE_TREE
<< std::endl
;
15 tree
.get()->visualize_tree ();
16 Template
tpl ("templates");
17 tree
.get()->create_tree_html (&tpl
, "Test/Out");
18 std::chrono::steady_clock::time_point
t2 (std::chrono::steady_clock::now());
19 std::chrono::duration
<double> dur (t2
- t1
);
20 std::cout
<< GENERATED_IN
<< dur
.count () << std::endl
;