VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Up-Time Class / Elapsed Time Class

Mark Wills  (2 Submissions)   Libraries   Visual Basic 3.0   Beginner   Wed 3rd February 2021

An easy to use class that will tell you how long your application has been running in hours, minutes, and days. The class will return both a descriptive string telling you the elapsed time, and individual integers for hours, minutes and days.

Inputs
None. Just call the Calculate method first.

Assumes
Very simple to use. The zip file contains a small VB project that shows how to use it. Full instructions are also included in the class code.

Returns
Uptime - Returns a string e.g. "1 Days, 2 Hours & 5 Minutes" Days - Returns an integer representing the number of days Hours - Returns an integer representing the number of hours Minutes - Returns an integer representing the number of minutes

Side Effects
None.

API Declarations
None.

Rate Up-Time Class / Elapsed Time Class (3(3 Vote))
Up-Time Class / Elapsed Time Class.bas

Up-Time Class / Elapsed Time Class Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters