Made the timing print in seconds.

This commit is contained in:
Lars Brubaker 2015-02-23 12:47:02 -08:00
parent 4a7718c1f5
commit f40edb4e84

View file

@ -1945,7 +1945,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication
if (PrinterIsPrinting)
{
string lineWidthoutCR = lineToWrite.Substring(0, lineToWrite.Length - 2);
CommunicationUnconditionalToPrinter.CallEvents(this, new StringEventArgs("{0} [{1}]\n".FormatWith(lineWidthoutCR, timeSinceStartedPrint.ElapsedMilliseconds)));
CommunicationUnconditionalToPrinter.CallEvents(this, new StringEventArgs("{0} [{1:0.000}]\n".FormatWith(lineWidthoutCR, timeSinceStartedPrint.Elapsed.TotalSeconds)));
}
else
{
@ -2610,7 +2610,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication
StringEventArgs currentEvent = new StringEventArgs(lastLineRead);
if (PrinterIsPrinting)
{
CommunicationUnconditionalFromPrinter.CallEvents(this, new StringEventArgs("{0} [{1}]\n".FormatWith(lastLineRead, timeSinceStartedPrint.ElapsedMilliseconds)));
CommunicationUnconditionalFromPrinter.CallEvents(this, new StringEventArgs("{0} [{1:0.000}]\n".FormatWith(lastLineRead, timeSinceStartedPrint.Elapsed.TotalSeconds)));
}
else
{