VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

High Speed Timer

the Mussel  (1 Submission)   VB function enhancement   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

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 (5(5 Vote))

Download High Speed Timer

High Speed Timer Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters