Report the real, user, and system time a command takes.

Synopsis

time COMMAND [ARG]...

Description

Runs COMMAND, then prints how long it took: real (wall-clock), user, and sys time.

Examples

$ time sleep 1

Measure how long a one-second sleep actually takes.

$ time ffmpeg -i in.mp4 out.webm

Measure how long a transcode takes.

Notes

user/sys times reflect the WASM shell's own accounting and may not map exactly to a native OS process's CPU time.

See Also

timeout, sleep