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 Days2.059 HoursThe other will return descriptions like this from the total milliseconds:2d 5h 18m 325msSee 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
Page created in 0.056 seconds with 34 queries.