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