Tscope5
timer1.c

wait functions

#include <tscope5.h>
int main()
{
ts5_printf(0.0, 0.0, "wait 2 seconds");
ts5_wait(2.0);
double tm = ts5_get_time();
ts5_printf(0.0, 0.0, "the program has been running for %f seconds now", tm);
tm += 2.0;
ts5_printf(0.0, 0.0, "another 2 seconds have elapsed now");
return 0;
}