Export (0) Print
Expand All

DateAndTime.Timer Property

Returns a Double value representing the number of seconds elapsed since midnight.

Namespace:  Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public static double Timer { get; }

Property Value

Type: System.Double
Returns a Double value representing the number of seconds elapsed since midnight.

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.

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


Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft