Skip to content

Commit

Permalink
Implement rendering functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rep-movsd committed Nov 24, 2017
1 parent 267a547 commit cdffe47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions main_bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ using namespace std;
int main()
{
constexpr auto parser =
#include "test/large_template.spt"
#include "test/loop_bench.spt"

REPORT_ERRORS(parser);

// Start timer and run it
auto tmStart = chrono::high_resolution_clock::now();

int k;
for(int i = 0; i < 1000; ++i)
for(int i = 0; i < 1; ++i)
{
spt::tree spt_tree(parser);
spt::template_dict dct = spt_tree.get_default_dict();
spt_tree.root.render(cout, dct);
spt_tree.root().render(cout, dct);
k = dct.size();
}

Expand Down
5 changes: 4 additions & 1 deletion seephit.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
#include <string>
#include <utility>
#include <vector>
#include <functional>
#include <any>

using std::string;
using std::vector;
using std::pair;
using std::unordered_map;

using std::any;
using std::function;
using std::ostream;
using std::cerr;
using std::endl;
Expand Down

0 comments on commit cdffe47

Please sign in to comment.