GetTimestamp Method
Collapse the table of content
Expand the table of content

Stopwatch.GetTimestamp Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the current number of ticks in the timer mechanism.

Namespace:  System.Diagnostics
Assembly:  System (in System.dll)

public static long GetTimestamp()

Return Value

Type: System.Int64
Returns Int64.

If the Stopwatch class uses a high-resolution performance counter, GetTimestamp returns the current value of that counter. If the Stopwatch class uses the system timer, GetTimestamp returns the current DateTime.Ticks property of the DateTime.Now instance.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft