CPU Speed  448.809 Mhz


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

hrtime() overhead is 1.160e-005 seconds.
hrtime() overhead is 3.583e-006 seconds.
hrtime() overhead is 3.409e-006 seconds.
hrtime() overhead is 3.309e-006 seconds.
hrtime() overhead is 3.349e-006 seconds.
hrtime() overhead is 3.344e-006 seconds.
hrtime() overhead is 2.979e-006 seconds.
hrtime() overhead is 3.445e-006 seconds.
hrtime() overhead is 2.983e-006 seconds.
hrtime() overhead is 3.385e-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 =     449.28MHz for     1 ticks.
Cpu Speed =     449.28MHz for     2 ticks.
Cpu Speed =     444.04MHz for     3 ticks.
Cpu Speed =     448.81MHz for     4 ticks.
Cpu Speed =     448.79MHz for     5 ticks.
Cpu Speed =     448.80MHz for    10 ticks.
Cpu Speed =     448.76MHz for    20 ticks.
Cpu Speed =     449.02MHz for    30 ticks.
Cpu Speed =     449.48MHz for    50 ticks.
Cpu Speed =     448.82MHz for    75 ticks.

Measure rate of standard ticks.

Std tick rate is   100.32 times/sec.
Std tick rate is   100.07 times/sec.
Std tick rate is   100.05 times/sec.
Std tick rate is   100.01 times/sec.
Std tick rate is   100.03 times/sec.
Std tick rate is   100.17 times/sec.
Std tick rate is   100.07 times/sec.
Std tick rate is   100.05 times/sec.
Std tick rate is    98.98 times/sec.
Std tick rate is   101.11 times/sec.

Measure amount of work done while waiting for tick.

Was able to incr cnt      17129 times while waiting for 9.72e-003 secs.
Was able to incr cnt      17612 times while waiting for 9.99e-003 secs.
Was able to incr cnt      17626 times while waiting for 9.99e-003 secs.
Was able to incr cnt      17430 times while waiting for 1.00e-002 secs.
Was able to incr cnt      17597 times while waiting for 9.97e-003 secs.
Was able to incr cnt      17588 times while waiting for 1.00e-002 secs.
Was able to incr cnt      17633 times while waiting for 9.99e-003 secs.
Was able to incr cnt      17615 times while waiting for 9.99e-003 secs.
Was able to incr cnt      17638 times while waiting for 1.01e-002 secs.
Was able to incr cnt      17247 times while waiting for 9.85e-003 secs.

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

     Computing sum += 1.0/sqrt(fnums[i]) takes 9.56e-002 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 9.54e-002 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 9.60e-002 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 9.57e-002 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 9.70e-002 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 9.56e-002 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 9.53e-002 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 9.56e-002 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 9.82e-002 secs.
     Computing sum += 1.0/sqrt(fnums[i]) takes 9.56e-002 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 2.07e-005 seconds.
Time delay after calling HLT is 4.27e-006 seconds.
Time delay after calling HLT is 4.05e-006 seconds.
Time delay after calling HLT is 3.99e-006 seconds.
Time delay after calling HLT is 3.96e-006 seconds.
Time delay after calling HLT is 3.96e-006 seconds.
Time delay after calling HLT is 3.96e-006 seconds.
Time delay after calling HLT is 3.96e-006 seconds.
Time delay after calling HLT is 3.96e-006 seconds.
Time delay after calling HLT is 3.99e-006 seconds.

Check ability to set value for CPU speed.

  Very useful if measured speed is too variable.

  Measured CPU Speed is 448.82 MHz, but I set it to 4.49 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 1.70e-003 seconds.
Time delay after calling HLT is 4.48e-004 seconds.
Time delay after calling HLT is 4.04e-004 seconds.
Time delay after calling HLT is 3.96e-004 seconds.
Time delay after calling HLT is 3.96e-004 seconds.
Time delay after calling HLT is 3.96e-004 seconds.
Time delay after calling HLT is 3.96e-004 seconds.
Time delay after calling HLT is 3.96e-004 seconds.
Time delay after calling HLT is 3.96e-004 seconds.
Time delay after calling HLT is 3.96e-004 seconds.
