Stopwatch.GetElapsedTime Méthode

Définition

Surcharges

Nom Description
GetElapsedTime(Int64)

Obtient le temps écoulé depuis la valeur récupérée à l’aide startingTimestampGetTimestamp()de .

GetElapsedTime(Int64, Int64)

Obtient le temps écoulé entre deux horodatages récupérés à l’aide GetTimestamp()de .

GetElapsedTime(Int64)

Source:
Stopwatch.cs
Source:
Stopwatch.cs
Source:
Stopwatch.cs
Source:
Stopwatch.cs
Source:
Stopwatch.cs

Obtient le temps écoulé depuis la valeur récupérée à l’aide startingTimestampGetTimestamp()de .

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

Paramètres

startingTimestamp
Int64

Horodatage marquant le début de la période.

Retours

Durée TimeSpan écoulée entre l’horodatage de début et l’heure de cet appel.

S’applique à

GetElapsedTime(Int64, Int64)

Source:
Stopwatch.cs
Source:
Stopwatch.cs
Source:
Stopwatch.cs
Source:
Stopwatch.cs
Source:
Stopwatch.cs

Obtient le temps écoulé entre deux horodatages récupérés à l’aide GetTimestamp()de .

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

Paramètres

startingTimestamp
Int64

Horodatage marquant le début de la période.

endingTimestamp
Int64

Horodatage marquant la fin de la période.

Retours

Durée TimeSpan écoulée entre les horodatages de début et de fin.

S’applique à