/* $begin tps-ans */ #include #include #include #include int tps() { clock_t tstart; struct tms t; tstart = times(&t); sleep(1); return (int) (times(&t) - tstart); } int main(int argc, char *argv[]) { printf("%d ticks/second\n", tps()); return 0; } /* $end tps-ans */