%module{Slic3r::XS};

%{
#include <xsinit.h>
#include "libslic3r/GCodeTimeEstimator.hpp"
%}

%name{Slic3r::GCode::TimeEstimator} class GCodeTimeEstimator {
    GCodeTimeEstimator();
    ~GCodeTimeEstimator();
    
    float time %get{time};
    void parse(std::string gcode);
    void parse_file(std::string file);
};
