8 volatile int gotit
= 0;
11 alarm_handler (int signal
)
18 main (int argc
, char ** argv
)
22 if (signal(SIGALRM
, alarm_handler
) == SIG_ERR
)
32 printf ("%jd clock ticks per second (start=%jd,stop=%jd)\n",
33 (intmax_t) (stop
- start
), (intmax_t) start
, (intmax_t) stop
);
34 printf ("CLOCKS_PER_SEC=%jd, sysconf(_SC_CLK_TCK)=%ld\n",
35 (intmax_t) CLOCKS_PER_SEC
, sysconf(_SC_CLK_TCK
));