CPU Speed  448.676 Mhz


Measure hrtime() overhead (the time between successive
  calls to hrtime().)

hrtime() overhead is 6.738e-006 seconds.
hrtime() overhead is 1.736e-005 seconds.
hrtime() overhead is 1.066e-005 seconds.
hrtime() overhead is 1.387e-005 seconds.
hrtime() overhead is 1.070e-005 seconds.
hrtime() overhead is 1.049e-005 seconds.
hrtime() overhead is 1.147e-005 seconds.
hrtime() overhead is 1.200e-005 seconds.
hrtime() overhead is 8.177e-006 seconds.
hrtime() overhead is 8.697e-006 seconds.

Check repeatability of measuring CPU speed.
  Under DOS32 I use tick_rate(997) while measuring cpu speed.
    Win32 has a tick rate of 100.
    Linux has a tick rate of 1000.
    At least according to Eu doc.

Cpu Speed =     445.03MHz for     1 ticks.
Cpu Speed =     446.52MHz for     2 ticks.
Cpu Speed =     448.64MHz for     3 ticks.
Cpu Speed =     447.82MHz for     4 ticks.
Cpu Speed =     448.06MHz for     5 ticks.
Cpu Speed =     491.18MHz for    10 ticks.
Cpu Speed =     448.86MHz for    20 ticks.
Cpu Speed =     448.44MHz for    30 ticks.
Cpu Speed =     448.80MHz for    50 ticks.
Cpu Speed =     448.35MHz for    75 ticks.

Measure rate of standard ticks.

Std tick rate is    18.16 times/sec.
Std tick rate is    18.17 times/sec.
Std tick rate is    18.16 times/sec.
Std tick rate is    18.18 times/sec.
Std tick rate is    18.14 times/sec.
Std tick rate is    18.19 times/sec.
Std tick rate is    18.16 times/sec.
Std tick rate is    18.17 times/sec.
Std tick rate is    18.16 times/sec.
Std tick rate is    18.17 times/sec.

Measure amount of work done while waiting for tick.

Was able to incr cnt       2290 times while waiting for 5.51e-002 secs.
Was able to incr cnt       2271 times while waiting for 5.50e-002 secs.
Was able to incr cnt       2264 times while waiting for 5.50e-002 secs.
Was able to incr cnt       2254 times while waiting for 5.51e-002 secs.
Was able to incr cnt       2027 times while waiting for 5.01e-002 secs.
Was able to incr cnt       2275 times while waiting for 5.51e-002 secs.
Was able to incr cnt       2265 times while waiting for 5.50e-002 secs.
Was able to incr cnt       2270 times while waiting for 5.50e-002 secs.
Was able to incr cnt       2258 times while waiting for 5.51e-002 secs.
Was able to incr cnt       2268 times while waiting for 5.51e-002 secs.

Explore speed of floating point operations.
  fnums is sequence of 100000 random floating point numbers.

     Computing sum += 1.0/sqrt(fnums[i]) takes 1.34e-001 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 1.28e-001 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 1.28e-001 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 1.29e-001 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 1.28e-001 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 1.28e-001 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 1.28e-001 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 1.28e-001 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 1.29e-001 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 1.28e-001 secs.

Begin testing use of HLT.
  Note: This will cause a program crash if run under straight DOS,
        but should be OK in a Windows DOS box or as a Windows
        cmdline program or in Linux (or FreeBSD).
  call(HLT) will return control to OS until OS gives it back.

Time delay after calling HLT is 3.23e-004 seconds.
Time delay after calling HLT is 2.18e-002 seconds.
Time delay after calling HLT is 5.50e-002 seconds.
Time delay after calling HLT is 5.51e-002 seconds.
Time delay after calling HLT is 5.51e-002 seconds.
Time delay after calling HLT is 5.54e-002 seconds.
Time delay after calling HLT is 5.47e-002 seconds.
Time delay after calling HLT is 5.49e-002 seconds.
Time delay after calling HLT is 5.50e-002 seconds.
Time delay after calling HLT is 5.52e-002 seconds.

Check ability to set value for CPU speed.

  Very useful if measured speed is too variable.

  Measured CPU Speed is 448.35 MHz, but I set it to 4.48 MHz.
  hrtime() should now report that HLT delay is about 100.00 times > than
  above, but the actual delay time has not changed.

Time delay after calling HLT is 5.43e+000 seconds.
Time delay after calling HLT is 5.50e+000 seconds.
Time delay after calling HLT is 5.51e+000 seconds.
Time delay after calling HLT is 5.50e+000 seconds.
Time delay after calling HLT is 5.51e+000 seconds.
Time delay after calling HLT is 5.50e+000 seconds.
Time delay after calling HLT is 5.52e+000 seconds.
Time delay after calling HLT is 5.50e+000 seconds.
Time delay after calling HLT is 5.50e+000 seconds.
Time delay after calling HLT is 5.51e+000 seconds.
