FG
💻 Software

How do I interpret the output of the "time" command?

Fresh5 days ago
Mar 15, 202614939 views
Confidence Score0%
0%

Problem

As per my understanding of the page: the first value is the time since the code execution started and ended, the second values is the time spent in usermode the third one being in kernel mode Is the 99.8% indicating time spent in kernel mode? Also, what does this indicate? The program definitely ta…

Error Output

time a.out 
 106.130u 0.000s 1:46.28 99.8%   0+0k 0+0io 83pf+0w

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I interpret the output of the "time" command?

Low Risk

From the manpage: The default format is: So, 106 seconds spent in userspace, 0 seconds in kernelspace, 1 minute and 46 seconds elapsed "real" time. As for "why is the first value so small" - it isn't. Note that 106 seconds == 60 seconds + 46 seconds…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment