test :- timer_init,
statistics(runtime,_),
statistics(walltime,_),
clock_microseconds(_),
clock_microseconds(_),
clock_microseconds(_),
clock_microseconds(_),
clock_microseconds(_),
clock_microseconds(_),
clock_microseconds(_),
clock_microseconds(_),
clock_microseconds(_),
clock_microseconds(X),
statistics(walltime,[S1,D1]), print(time_for_ten_clock_calls(D1)),nl,
start_timer(app),
app([a,b,c,d,e,f,g,h,i,j,k,l,m],[z],_),
print_clock_info(X),
statistics(walltime,[_,B0]), print(sicstus_walltime(B0)),nl,
app([a,b,c,d,e,f,g,h,i,j,k,l,m],[z],_),
stop_timer(app),
print_clock_info(X),
start_timer(app),
app([a,b,c,d,e,f,g,h,i,j,k,l,m],[z],_),
stop_timer(app),
print_clock_info(X),
start_timer(do_something),
do_something,
stop_timer(do_something),
print_clock_info(X),
( timer_call(app2(A,B,[a,b,c,d,e,f,g,h])), print((A,B)),nl, fail ; true),
timer_call(app2([a,b,c,d,e,f,g,h],[z],_)),
statistics(walltime,[S2,_]), Delta is S2-S1,
print(sicstus_walltime(Delta)),nl,
statistics(runtime,[_,B2]),
print(sicstus_runtime(B2)),nl,
print_clock_info(X),
timer_statistics.