Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Thanks a lot. Actually, I am little bit confused with REAL TIME (Or WALL CLOCK TIME) vs ELAPSED TIME. Are they same, I mean WALL CLOCK TIME and ELAPSED TIME ?
    – Arpssss
    Commented Jun 21, 2012 at 20:00
  • @Arpssss I believe they are. Real / elapsed / wall clock time is how long between the start and end of the program, e.g., how long the program took to run (as would be measured by a wall clock, hence the name). This is in contrast to CPU time (user time + system time), which measures how much time the CPU spends actually executing the program, which might be less, since the CPU can sleep while the program is waiting on something, such as user input. Commented Jun 21, 2012 at 20:12
  • 1
    "the CPU can sleep while the program is waiting on something" - Actually it's the program that sleeps (i.e. the scheduler puts the process on the "sleep" or waiting-for-I/O list) while the CPU schedules another program/process or enters the idle loop. If no other process is ready to run, then the idle loop could allow the CPU to enter somekind of low power state.
    – sawdust
    Commented Jun 22, 2012 at 6:14
  • @sawdust +1 Very true. I was thinking about a simplified system which had 1 CPU and 1 process, but forgot to specify the details as such. Commented Jun 22, 2012 at 14:06