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

A set of simple time helper methods.
Afficher le fichier Open project: garyjohnson/wpnest

Méthodes publiques

Méthode 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

Méthode Description
Plural ( this value, int number ) : string

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

Method Details

ElapsedReadableTime() public static méthode

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.
Résultat string

ElapsedReadableTime() public static méthode

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.
Résultat string