CPUTimer.htm 1.4 KB

1234567
  1. <html><head><title>Command: CPUTimer() </title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><link rel='stylesheet' href='../css/commands.css' type='text/css'></head><body><span class='Command'>&nbsp;&nbsp;CPUTimer() &nbsp;&nbsp;</span></p><span class='header'>Definition:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Returns the current value of the CPU timer.</td></tr></table><span class='header'><br>Parameter Description:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>None.</td></tr></table><p class='header'>Command Description: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>This returns a constantly counting up timer, apparently from the CPU. Seems to always be negative. This could be useful for soem randomize seed, but for any sort of 'time tracking', I would use <a href='Millisecs().htm'>Millisecs()</a>. This command could be outdated, and just not removed from the product.</td></tr></table><p class='header'>Example: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>;CPUTIMER() example<br>
  2. <br>
  3. While Not keyhit(1)<br>
  4. Print CPUTimer()<br>
  5. Wend<br>
  6. <br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
  7. </html>