by Syntax (3 Submissions)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(3 Votes)
This tiny piece of code I picked up from somewhere along the way, accurately counts how long it took to perform a task. The timer control updates every 0.05 seconds, so for very small intervals it does not work properly. With this one API call, you can get down to the milliseconds!!! Example code is included.
Download Timing milliseconds (1 KB)