Add the dangerous console writeline in log.

Fix the timer to work correctly.
This commit is contained in:
Marc 2013-04-04 11:22:28 -07:00
parent 36e91adeaa
commit 7c272afe56
2 changed files with 4 additions and 1 deletions

2
Log.cs
View File

@ -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 )

View File

@ -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;
}