Added absolute time to estimated time for color print and fixed a bug in showing estimated times for print color for silent mode

This commit is contained in:
Enrico Turri 2019-08-02 12:05:02 +02:00
parent 28cc595350
commit c791ba776f
4 changed files with 29 additions and 11 deletions

View file

@ -346,14 +346,16 @@ namespace Slic3r {
// Returns the estimated time, in minutes (integer)
std::string get_time_minutes() const;
// Returns the estimated time, in seconds, for each color
// Returns the estimated time, in seconds, for each color
std::vector<float> get_color_times() const;
// Returns the estimated time, in format DDd HHh MMm SSs, for each color
std::vector<std::string> get_color_times_dhms() const;
// If include_absolute==true the strings will be formatted as: "absolute time (relative time)"
std::vector<std::string> get_color_times_dhms(bool include_absolute) const;
// Returns the estimated time, in minutes (integer), for each color
std::vector<std::string> get_color_times_minutes() const;
// If include_absolute==true the strings will be formatted as: "absolute time (relative time)"
std::vector<std::string> get_color_times_minutes(bool include_absolute) const;
// Return an estimate of the memory consumed by the time estimator.
size_t memory_used() const;