Add the dangerous console writeline in log.
Fix the timer to work correctly.
This commit is contained in:
parent
36e91adeaa
commit
7c272afe56
2
Log.cs
2
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 )
|
||||
|
||||
3
Timer.cs
3
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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user