We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c05f781 commit 03b6b5fCopy full SHA for 03b6b5f
1 file changed
src/interpreter.ts
@@ -30,6 +30,7 @@ export class Interpreter {
30
* @returns The updated job instance
31
*/
32
execute(commands: GCodeCommand[], job = new Job()): Job {
33
+ performance.mark('start execution');
34
job.resumeLastPath();
35
commands.forEach((command) => {
36
if (command.gcode !== undefined) {
@@ -43,6 +44,8 @@ export class Interpreter {
43
44
});
45
job.finishPath();
46
47
+ performance.mark('end execution');
48
+ const measure = performance.measure('execution', 'start execution', 'end execution');
49
console.debug('Done processing gcode', measure.duration.toFixed(0) + 'ms');
50
console.debug(this.retractions, 'retractions');
51
console.debug(this.wipes, 'wipes');
0 commit comments