TimeSpan Constructor (Int64)

 

Initializes a new instance of the TimeSpan structure to the specified number of ticks.

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

new : 
        ticks:int64 -> TimeSpan

Parameters

ticks
Type: System.Int64

A time period expressed in 100-nanosecond units.

A single tick represents one hundred nanoseconds or one ten-millionth of a second. There are 10,000 ticks in a millisecond.

The following example creates several TimeSpan objects using the constructor overload that initializes a TimeSpan to a specified number of ticks.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: