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