DateAndTime.Timer Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Returns a Double value representing the number of seconds elapsed since midnight.
Namespace: Microsoft.VisualBasic
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
Syntax
'Declaration
Public Shared ReadOnly Property Timer As Double
public static double Timer { get; }
Property Value
Type: System.Double
Returns a Double value representing the number of seconds elapsed since midnight.
Remarks
The Timer property returns both the seconds and the milliseconds since the most recent midnight. The seconds are in the integral part of the return value, and the milliseconds are in the fractional part.
Examples
This example uses the Timer property to pause the application. It can perform other processing during the pause.
Dim outputBlock As New TextBlock
outputBlock.Text = "The current date is " & DateString
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.