int command_sys_time(struct cli *c, int argc, char **argv) { nanosecs_t now = system_get_time(); printf("system running for %lld.%09lld secs\n", now/NANOSECS_SEC, now%NANOSECS_SEC); clock_report(); timer_report(); return 0; }
int main(void) { start_clock("fibo"); recursive_fibonacci_number(33); stop_clock("fibo"); start_clock("fibo2"); iterative_fibonacci_number(33); stop_clock("fibo2"); clock_report(); return 0; }