Loading Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ # cube-test: cube-test.c cc -Wall -o cube-test cube-test.c $(CC) -Wall -o $@ $< # vim:ft=make Loading cube-test.c +5 −5 Original line number Diff line number Diff line Loading @@ -30,17 +30,17 @@ read_number() { return atoi(buf); } typedef struct timer_struct { typedef struct interval_timer_struct { struct timeval then; } timer_t; } interval_timer_t; void start_timer(timer_t *timer) { start_timer(interval_timer_t *timer) { gettimeofday(&timer->then, NULL); } long int end_timer(timer_t *timer) { end_timer(interval_timer_t *timer) { struct timeval now; long int delta; Loading Loading @@ -68,7 +68,7 @@ humanize_usec(long int usec) { int main(int argc, char *argv[]) { int guess, number, iterations = 0, correct = 0; timer_t timer; interval_timer_t timer; long int delta, delta_total = 0; srand(time(NULL)); Loading Loading
Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ # cube-test: cube-test.c cc -Wall -o cube-test cube-test.c $(CC) -Wall -o $@ $< # vim:ft=make Loading
cube-test.c +5 −5 Original line number Diff line number Diff line Loading @@ -30,17 +30,17 @@ read_number() { return atoi(buf); } typedef struct timer_struct { typedef struct interval_timer_struct { struct timeval then; } timer_t; } interval_timer_t; void start_timer(timer_t *timer) { start_timer(interval_timer_t *timer) { gettimeofday(&timer->then, NULL); } long int end_timer(timer_t *timer) { end_timer(interval_timer_t *timer) { struct timeval now; long int delta; Loading Loading @@ -68,7 +68,7 @@ humanize_usec(long int usec) { int main(int argc, char *argv[]) { int guess, number, iterations = 0, correct = 0; timer_t timer; interval_timer_t timer; long int delta, delta_total = 0; srand(time(NULL)); Loading