This screen capture demo can now be found here.
One of these days I'm going to get around to doing a third C# tutorial series.
For today, though, I just thought I'd share this class I whipped up for a project I'm working on. It takes total milliseconds of elapsed time and converts it to a string description. There are two static methods in the class. One of them can return strings such as:
1.308 Days
2.059 Hours
The other will return descriptions like this from the total milliseconds:
2d 5h 18m 325ms
See the attachment.


For anyone interested, it's extremely simple, in C#, to determine whether your internet connection is "up" (connected) or "down" (not connected). I've done a C# project demonstrating:
download link

Original address: https://www.donationcoder.com/forum/index.php?topic=7558.0