Tscope5
Main Page
Related Pages
Files
Examples
timer1.c
wait functions
#include <tscope5.h>
int
main()
{
ts5_install_display
();
ts5_printf
(0.0, 0.0,
"wait 2 seconds"
);
ts5_flip_display
();
ts5_wait
(2.0);
double
tm =
ts5_get_time
();
ts5_clear_display
();
ts5_printf
(0.0, 0.0,
"the program has been running for %f seconds now"
, tm);
ts5_flip_display
();
tm += 2.0;
ts5_wait_until
(tm);
ts5_clear_display
();
ts5_printf
(0.0, 0.0,
"another 2 seconds have elapsed now"
);
ts5_draw_mouse_button
(
ts5_relative_to_absolute_coordinate_x
(0.9),
ts5_relative_to_absolute_coordinate_y
(-0.8));
return
0;
}