The time command in Linux is used to determine the duration of execution of a Go binary program. The time command returns, three(3) results are displayed:
- real time – the total execution time. This is the time elapsed between invocation and termination of the command.
- user CPU time – the CPU time used by your process.
- system (sys) CPU time – the CPU time used by the system on behalf of your process.
# time go.binary.program
real 0m0.001s
user 0m1.021s
sys 0m0.000s