next up previous contents
Next: 5.14.5 Profiling overhead Up: 5.14 Profiling Previous: 5.14.3 Nested or Recursive

5.14.4 Clock resolution

Unless you are very lucky, the length of your machine's clock ``tick'' is probably much longer than the time it takes simple function to run. For example, on the IBM RT, the clock resolution is 1/50 second. This means that if a function is only called a few times, then only the first couple decimal places are really meaningful.

Note however, that if a function is called many times, then the statistical averaging across all calls should result in increased resolution. For example, on the IBM RT, if a function is called a thousand times, then a resolution of tens of microseconds can be expected.



Raymond Toy
Mon Jul 14 09:11:27 EDT 1997