Commit 79593186 authored by Laszlo Domoszlai's avatar Laszlo Domoszlai
Browse files

also measure "print" for full evaluation

parent 59f9fa25
......@@ -74,7 +74,7 @@ int main ( int argc, char *argv[] )
parse(&line, len);
input = "..\\tests\\Cichelli.bsapl";
input = "..\\tests\\parsetest1.bsapl";
if ( argc == 2 )
{
......@@ -113,13 +113,13 @@ int main ( int argc, char *argv[] )
res->desc = (Desc*) __INT__; // does not matter, but should be a proper descriptor
push_a(res);
exec(expr, stack_top_a, stack_top_a);
print(true);
#ifdef BENCHMARK
gettimeofday(&t2, NULL);
#endif
print(true);
#ifdef BENCHMARK
// compute and print the elapsed time in millisec
double elapsedTime = (t2.tv_sec - t1.tv_sec) * 1000.0; // sec to ms
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment