Return the estimated time remaining if we have it, else null
| 462 | |
| 463 | // Return the estimated time remaining if we have it, else null |
| 464 | ExpressionValue 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 |
| 471 | ExpressionValue PrintMonitor::EstimateTimeToPause() const noexcept |
no test coverage detected