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

Method GetCurrentLayerTime

src/PrintMonitor/PrintMonitor.cpp:502–505  ·  view source on GitHub ↗

Get the time since starting the current layer in seconds

Source from the content-addressed store, hash-verified

500
501// Get the time since starting the current layer in seconds
502float PrintMonitor::GetCurrentLayerTime() const noexcept
503{
504 return (float)(millis64() - lastLayerChangeTime + lastLayerChangeNonPrintingTime - (GetWarmUpDuration() + GetPauseDuration())) * MillisToSeconds;
505}
506
507// End

Callers 2

RepRap.cppFile · 0.80
PrintMonitor.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected