time - unix -utility that returns the execution time of a simple command or getting a hint on a resource. When the command completes, time prints to standard output a statistical message about the time used during this run. This statistic contains:
- real time between call and end
- the CPU time that the user took (the sum of the tms_utime and tms_cutime values in the struct tms structure, which is returned by the times call)
- CPU time occupied by the system (the sum of the tms_stime and tms_cstime values in the struct tms structure, which is returned by the times call).
Use
- time [options] command [arguments ...]
Launch Options
- -p
- When the POSIX locale is used, the exact traditional format is used.
"real% f \ nuser% f \ nsys% f \ n"
- (with numbers in seconds), where the number of digits in the output for% f is not specified, but it is sufficient for an exact expression of time and, at least, at least one digit.