Stopwatch.GetElapsedTime Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetElapsedTime(Int64) |
Gets the elapsed time since the |
GetElapsedTime(Int64, Int64) |
Gets the elapsed time between two timestamps retrieved using GetTimestamp(). |
GetElapsedTime(Int64)
- Source:
- Stopwatch.cs
- Source:
- Stopwatch.cs
- Source:
- Stopwatch.cs
Gets the elapsed time since the startingTimestamp
value retrieved using 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
Parameters
- startingTimestamp
- Int64
The timestamp marking the beginning of the time period.
Returns
A TimeSpan for the elapsed time between the starting timestamp and the time of this call.
Applies to
GetElapsedTime(Int64, Int64)
- Source:
- Stopwatch.cs
- Source:
- Stopwatch.cs
- Source:
- Stopwatch.cs
Gets the elapsed time between two timestamps retrieved using 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
Parameters
- startingTimestamp
- Int64
The timestamp marking the beginning of the time period.
- endingTimestamp
- Int64
The timestamp marking the end of the time period.
Returns
A TimeSpan for the elapsed time between the starting and ending timestamps.
Applies to
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre