Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-and-itasks
sapl-interpreter
Commits
79593186
Commit
79593186
authored
Jan 25, 2016
by
Laszlo Domoszlai
Browse files
also measure "print" for full evaluation
parent
59f9fa25
Changes
1
Hide whitespace changes
Inline
Side-by-side
interpreter/main.c
View file @
79593186
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment