System.TimeSpan.FromTicks Method

Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.

Syntax

public static TimeSpan FromTicks (long value)

Parameters

value
A number of ticks that represent a time.

Returns

An object that represents value.

Remarks

This is a convenience method with the same behavior as the TimeSpan.#ctor(long) constructor. A single tick represents one hundred nanoseconds or one ten-millionth of a second. There are 10,000 ticks in a millisecond.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0