VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

StopWatch Class Module

Jan Botha  (6 Submissions)   VB function enhancement   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

I bet you're one of those programmers that want to time something in your code, aren't you? Well, with this code you can! This, is a Stopwatch! Not one of those that screw will up when midnight occurs while you're timing. This is... no, not Y2K compliant, infact, it's midnight-compliant! (Fully documented code!)

Assumes
Start a new project, add a new class module. Name the class module "CStopWatch" Put 3 Command buttons on the form (Command1, Command2, Command3)

Returns
Number of seconds that have elapsed while you timed.

Side Effects
You'll have to change your system time if you want to see if this really is midnight-compliant!

Rate StopWatch Class Module (4(4 Vote))
StopWatch Class Module.bas

StopWatch Class Module Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters