Mono Class Library: System.Environment Overview | Members

System.Environment.TickCount Property

Gets the number of milliseconds elapsed since the system was started.

Value: 496190500

public static int TickCount { get; }

Value

A int value containing the amount of time in milliseconds that has passed since the last time the computer was started.

Remarks

This property is read-only.

The resolution of the Environment.TickCount property cannot be less than 500 milliseconds.

The value of this property is derived from the system timer.

The Environment.TickCount property handles an overflow condition by resetting its value to zero. The minimum value returned by Environment.TickCount is 0.

Note:

Environment.TickCount is measured in milliseconds, not in "ticks".

The Environment.TickCount reaches its maximum value after approximately 24.8 days of continuous up time.

For applications that require a finer granularity or a larger maximum time than Environment.TickCount supports, see DateTime.Now .

Requirements

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