VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Up-Time Class / Elapsed Time Class

by Mark Wills (2 Submissions)
Category: Libraries
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

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.
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

Upload

Download this snippet    Add to My Saved Code

Up-Time Class / Elapsed Time Class Comments

No comments have been posted about Up-Time Class / Elapsed Time Class. Why not be the first to post a comment about Up-Time Class / Elapsed Time Class.

Post your comment

Subject:
Message:
0/1000 characters