home *** CD-ROM | disk | FTP | other *** search
QuickBASIC Tokenized Source | 1992-04-23 | 2.0 KB | 40 lines |
- @ InitTimer
- Delay
- NMALLOC
- nitTimer
- GetTimer
- NumClicks
- DetachTimer
- Delcare
- SetTimer
- SetTime
- GetTime
- initilize
- retrieve
- hertz
- An example usage of the high precision timer v1.00
- By Rich Geldreicho
- (Do not interrupt the timing by pressing Ctrl+Break! Nothing adverse will
- happen, but QB will change interrupt vectors and HPTIMER will cease to
- function until DetachTimer is called! That is why this program attemps
- to detach the timer when it is first called.)
- HPTIMER v1.00 By Rich Geldreich 1992
- A comparison of 6,000 divides and 6,000 multiplies:"
- turn off timer just in case
- the user pressed Ctrl+Breakc
- initilize timer to 7,000 hertz
- set timer to zerol
- retrieve the timer's contents
- 6,000 floating point divides:
- clock ticks
- seconds"
- 6,000 integer divides: "
- clock ticks
- seconds"
- 6,000 multiplies:
- clock ticks
- seconds"
- don't forget to detach the timer!
- It's pretty obvious that one should use the integer
- divide whenever possible."
-