I am learning C # using Xamarin Studio 4.0.3 (formerly MonoDevelop) on Windows 7 . Attempting to use the Stopwatch class (snippet only)
using System.Diagnostics; class MainClass { public static void Main (string[] args) { Stopwatch stopWatch = new Stopwatch(); } }
I get:
Error CS0246: Could not find the name of the type or namespace 'Stopwatch'. Do you miss the usage directive or assembly reference?
My target structure: Mono.NET 4.0. According to MSDN , a stopwatch class must be implemented.
BTW, DateTime class works fine.
Question: am I missing something (the correct namespace, library binding), or is the stopwatch simply not implemented?
source share