Tech ENABLE_PREVIEW_LAYER_TIME - Implementation of coloring toolpaths by layer time (Similar to pull request #3904)
This commit is contained in:
parent
d04ece92c3
commit
fd3d673a1e
5 changed files with 127 additions and 29 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <system_error>
|
||||
#include <cmath>
|
||||
|
||||
#include <boost/system/error_code.hpp>
|
||||
|
||||
|
@ -343,7 +344,7 @@ inline std::string get_time_dhms(float time_in_secs)
|
|||
else if (minutes > 0)
|
||||
::sprintf(buffer, "%dm %ds", minutes, (int)time_in_secs);
|
||||
else
|
||||
::sprintf(buffer, "%ds", (int)time_in_secs);
|
||||
::sprintf(buffer, "%ds", (int)std::round(time_in_secs));
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue