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.
I've fixed a bug, and re-uploaded this helper class.