Do not qualify Stopwatch fully, to allow it to be overridden by Minimal.cs if necessary.

This commit is contained in:
the_fiddler 2009-10-24 10:35:49 +00:00
parent 7f3829acca
commit 4f2ac1753b

View file

@ -129,9 +129,9 @@ namespace OpenTK
if (delegates == null) if (delegates == null)
throw new InvalidOperationException("The specified type does not have any loadable extensions."); throw new InvalidOperationException("The specified type does not have any loadable extensions.");
Debug.Write("Load extensions for " + this.GetType().FullName + "... "); Debug.Write("Loading extensions for " + this.GetType().FullName + "... ");
System.Diagnostics.Stopwatch time = new System.Diagnostics.Stopwatch(); Stopwatch time = new Stopwatch();
time.Reset(); time.Reset();
time.Start(); time.Start();
@ -147,7 +147,7 @@ namespace OpenTK
rebuildExtensionList = true; rebuildExtensionList = true;
time.Stop(); time.Stop();
Debug.Print("{0} extensions loaded in {1} ms.", supported, time.ElapsedMilliseconds); Debug.Print("{0} extensions loaded in {1} ms.", supported, time.Elapsed.TotalMilliseconds);
time.Reset(); time.Reset();
} }