VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



High Speed Timer

by the Mussel (1 Submission)
Category: VB function enhancement
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

High Speed Timer class with 3 sample programs to illustrate usage!
1) Time execution of your code.
2) Simple Game to test your reaction time.
3) Fully functional high-precision stopwatch.
The High Speed Timer class is fully independent and ready to be
added to other proggies. Also shows usage of LARGE INTEGER (8 bytes),
demonstrates a few API calls, all wrapped up in a neat little package.
Please vote if you think it's worth it :<|

Assumes
This little class will be very useful for making games, utilities and debugging your own code. Please give me feedback & VOTE!
API Declarations
'Function to get current clock count
Private Declare Function QueryPerformanceCounter Lib "kernel32" ( _
lpPerformanceCount As Currency) As Long

'Function to see how many clock ticks per second on this computer
Private Declare Function QueryPerformanceFrequency Lib "kernel32" ( _
lpPerformanceCount As Currency) As Long

Rate High Speed Timer

Download High Speed Timer

Download High Speed Timer (7 KB)

High Speed Timer Comments

No comments have been posted about High Speed Timer. Why not be the first to post a comment about High Speed Timer.

Post your comment

Subject:
Message:
0/1000 characters