Utility.GetMachineTime Method

Gets the machine time (system time).

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

public static TimeSpan GetMachineTime ()

Return Value

The system time.

The system time is a time span specifying how much time has elapsed since the last reboot.

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

Community Additions