class gpr::ScopedPredictTimer

Times one surrogate prediction into predict_seconds and predict_count. The model’s dispatchers and the drivers that wrap them both open one; only the outermost scope counts.

#include <gpr/ml/PhaseTimers.h>
 
class ScopedPredictTimer {
public:
    // construction
 
    ScopedPredictTimer();
    ScopedPredictTimer(const ScopedPredictTimer&);
    ~ScopedPredictTimer();
 
    // methods
 
    ScopedPredictTimer& operator=(const ScopedPredictTimer&);
};