From 7c272afe56ce2b20e589c8e2f51c4e2f223cb261 Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 4 Apr 2013 11:22:28 -0700 Subject: [PATCH] Add the dangerous console writeline in log. Fix the timer to work correctly. --- Log.cs | 2 +- Timer.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Log.cs b/Log.cs index aa05147..9306678 100644 --- a/Log.cs +++ b/Log.cs @@ -134,7 +134,7 @@ namespace lib String finalMsg = String.Format( "{0,-10}{1}| {2}", type, sym, msg ); - //Console.WriteLine( finalMsg ); + Console.WriteLine( finalMsg ); //Console.Out.Write( finalMsg ); foreach( var l_obj in Debug.Listeners ) diff --git a/Timer.cs b/Timer.cs index caa8716..ea0eb4a 100644 --- a/Timer.cs +++ b/Timer.cs @@ -232,12 +232,14 @@ namespace lib freq = 1000 * 1000; freq_millis = freq / 1000; + Start(); } // Start the timer public void Start() { + m_watch.Start(); startTime = m_watch.ElapsedMicroseconds; stopTime = m_watch.ElapsedMicroseconds; } @@ -246,6 +248,7 @@ namespace lib public void Stop() { + m_watch.Stop(); stopTime = m_watch.ElapsedMicroseconds; }