MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / GetPrintOrSimulatedDuration

Method GetPrintOrSimulatedDuration

src/PrintMonitor/PrintMonitor.cpp:118–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116DEFINE_GET_OBJECT_MODEL_TABLE(PrintMonitor)
117
118int32_t PrintMonitor::GetPrintOrSimulatedDuration() const noexcept
119{
120 return lrintf((gCodes.IsSimulating()) ? gCodes.GetSimulationTime() + reprap.GetMove().GetSimulationTime() : GetPrintDuration());
121}
122
123PrintMonitor::PrintMonitor(Platform& p, GCodes& gc) noexcept : platform(p), gCodes(gc), lastWarmUpDuration(0), isPrinting(false), heatingUp(false), paused(false), printingFileParsed(false)
124{

Callers 1

PrintMonitor.cppFile · 0.80

Calls 1

GetSimulationTimeMethod · 0.45

Tested by

no test coverage detected