#include <stdio.h> #include <unistd.h> #include "timing.h" int main() { if (start_chrono() == -1) { fprintf (stderr, "\nstart_chrono() failed\n"); return 1; } sleep(1); if (stop_chrono() == -1) { fprintf (stderr, "\nstop_chrono() failed\n"); return 1; } fprintf (stdout, "\nElapsed time is: %lu ms\n", get_ms()); return 0; }