using System.Diagnostics;
public static void Main()
Console.WriteLine("Hello World");
public static object ReadSensor()
public static object TenSeconds()
private const int BUS_DELAY_MS = 150;
private String _name = "Geoff";
enum WidgetStatus : ushort
Thread.Sleep(BUS_DELAY_MS);
_status = r.Next(0, (int)WidgetStatus.Max);
Thread.Sleep(BUS_DELAY_MS);
Thread.Sleep(BUS_DELAY_MS);
Thread.Sleep(BUS_DELAY_MS);
public static void Time(Func<object> f)
Stopwatch stopwatch = new Stopwatch();
Console.WriteLine("Test starting... ");
Console.Write("Test result: ");
Console.Write("Elapsed time: ");
Console.WriteLine(stopwatch.Elapsed.ToString());