C# Класс Microsoft.Silverlight.Testing.Client.TimeHelper

A set of simple time helper methods.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Plural ( this value, int number ) : string

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

Описание методов

ElapsedReadableTime() публичный статический Метод

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.
Результат string

ElapsedReadableTime() публичный статический Метод

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.
Результат string