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 ("%ld clock ticks per second (start=%ld,stop=%ld)\n",
32 stop
- start
, start
, stop
);
33 printf ("CLOCKS_PER_SEC=%ld, sysconf(_SC_CLK_TCK)=%ld\n",
34 CLOCKS_PER_SEC
, sysconf(_SC_CLK_TCK
));