Usage: runtime program [arguments]
runtime returns the total turnaround time of program in number of milliseconds.
Example
$ runtime who >/dev/null
Total elasped time: 70 milliseconds
$ runtime sleep 3
Total elasped time: 3030 milliseconds
Implementation Details
* Spawn a new process using fork.
* Invoke program in the child process using a version of exec.
* Wait for the child to finish using wait.
* On Unix or Linux, time the program use the gettimeofday function to compute the elapsed time.
* Write the time output to stderr.
fork, exec, and wait, are system calls. They are documented in Section 2 of the online Programmer's Manual. On Unix, use the command man -s 2 function to access the documentation.
HOW TO DO