Stopwatch.GetElapsedTime メソッド

定義

オーバーロード

名前 説明
GetElapsedTime(Int64)

startingTimestampを使用して取得したGetTimestamp()値以降の経過時間を取得します。

GetElapsedTime(Int64, Int64)

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

GetElapsedTime(Int64)

ソース:
Stopwatch.cs
ソース:
Stopwatch.cs
ソース:
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
ソース:
Stopwatch.cs
ソース:
Stopwatch.cs

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

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

適用対象