Stopwatch.GetElapsedTime メソッド

定義

オーバーロード

GetElapsedTime(Int64)

を使用して値が取得されてからの startingTimestamp 経過時間を GetTimestamp()取得します。

GetElapsedTime(Int64, Int64)

を使用して取得された 2 つのタイムスタンプ間の経過時間を GetTimestamp()取得します。

GetElapsedTime(Int64)

ソース:
Stopwatch.cs
ソース:
Stopwatch.cs
ソース:
Stopwatch.cs

を使用して値が取得されてからの startingTimestamp 経過時間を GetTimestamp()取得します。

public:
 static TimeSpan GetElapsedTime(long startingTimestamp);
public static TimeSpan GetElapsedTime (long startingTimestamp);
static member GetElapsedTime : int64 -> TimeSpan
Public Shared Function GetElapsedTime (startingTimestamp As Long) As TimeSpan

パラメーター

startingTimestamp
Int64

期間の先頭を示すタイムスタンプ。

戻り値

TimeSpan開始タイムスタンプからこの呼び出しの時刻までの経過時間の 。

適用対象

GetElapsedTime(Int64, Int64)

ソース:
Stopwatch.cs
ソース:
Stopwatch.cs
ソース:
Stopwatch.cs

を使用して取得された 2 つのタイムスタンプ間の経過時間を GetTimestamp()取得します。

public:
 static TimeSpan GetElapsedTime(long startingTimestamp, long endingTimestamp);
public static TimeSpan GetElapsedTime (long startingTimestamp, long endingTimestamp);
static member GetElapsedTime : int64 * int64 -> TimeSpan
Public Shared Function GetElapsedTime (startingTimestamp As Long, endingTimestamp As Long) As TimeSpan

パラメーター

startingTimestamp
Int64

期間の先頭を示すタイムスタンプ。

endingTimestamp
Int64

期間の終わりを示すタイムスタンプ。

戻り値

TimeSpan開始タイムスタンプと終了タイムスタンプの間の経過時間の 。

適用対象