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

Method EstimateTimeLeftAsExpression

src/PrintMonitor/PrintMonitor.cpp:464–468  ·  view source on GitHub ↗

Return the estimated time remaining if we have it, else null

Source from the content-addressed store, hash-verified

462
463// Return the estimated time remaining if we have it, else null
464ExpressionValue PrintMonitor::EstimateTimeLeftAsExpression(PrintEstimationMethod method) const noexcept
465{
466 const float timeLeft = EstimateTimeLeft(method);
467 return (timeLeft > 0.0) ? ExpressionValue(lrintf(timeLeft)) : ExpressionValue(nullptr);
468}
469
470// Return the estimated time until user interaction is required e.g. to change filament
471ExpressionValue PrintMonitor::EstimateTimeToPause() const noexcept

Callers 1

PrintMonitor.cppFile · 0.80

Calls 1

ExpressionValueClass · 0.50

Tested by

no test coverage detected