browsix icon indicating copy to clipboard operation
browsix copied to clipboard

cmd: time

Open bpowers opened this issue 9 years ago • 0 comments

We should implement time as a command. This is sometimes implemented as a shell builtin in addition, but lets begin with a standalone program.

One thing to think about is how time should get and display information on how long it took a child to run. The simplest thing would be to record the time at which we issued the spawn syscall to the time we received SIGCHLD. It might be better tho to extend the kernel to keep track of this info, and implement a standard syscall like getrusage to access that info from time.

bpowers avatar Mar 02 '16 14:03 bpowers