6 volatile int gotit
= 0;
9 alarm_handler (int signal
)
16 main (int argc
, char ** argv
)
20 if (signal(SIGALRM
, alarm_handler
) == SIG_ERR
)
30 printf ("%ld clock ticks per second (start=%ld,stop=%ld)\n",
31 stop
- start
, start
, stop
);
32 printf ("CLOCKS_PER_SEC=%d, sysconf(_SC_CLK_TCK)=%ld\n",
33 CLOCKS_PER_SEC
, sysconf(_SC_CLK_TCK
));