C# Class Microsoft.Silverlight.Testing.Client.TimeHelper

A set of simple time helper methods.
Show file Open project: garyjohnson/wpnest

Public Methods

Method Description
ElapsedReadableTime ( System.DateTime start, System.DateTime finish ) : string

Returns a human-readable formatting of the time different between two DateTime instances.

ElapsedReadableTime ( System.TimeSpan ts ) : string

Returns a human-readable formatting of the time different between two DateTime instances.

Private Methods

Method Description
Plural ( this value, int number ) : string

A plural 's' as the suffix, when not equal to one.

Method Details

ElapsedReadableTime() public static method

Returns a human-readable formatting of the time different between two DateTime instances.
public static ElapsedReadableTime ( System.DateTime start, System.DateTime finish ) : string
start System.DateTime The starting time.
finish System.DateTime The finishing time.
return string

ElapsedReadableTime() public static method

Returns a human-readable formatting of the time different between two DateTime instances.
public static ElapsedReadableTime ( System.TimeSpan ts ) : string
ts System.TimeSpan The time span instance.
return string