From e52c2a857c5e361d01cf5a5b0f26c015295a2aa8 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Tue, 18 Jul 2017 00:15:49 +0200 Subject: [PATCH] RuffyScripter: log command execution time. --- app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index feb2861608..98c2a4359e 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -215,7 +215,10 @@ public class RuffyScripter { return; } log.debug("Cmd execution: connection ready, executing cmd " + cmd); + long cmdStartTime = System.currentTimeMillis(); returnable.cmdResult = cmd.execute(scripter); + long cmdEndTime = System.currentTimeMillis(); + log.debug("Executing " + cmd + " took " + (cmdEndTime - cmdStartTime) + "ms"); } catch (CommandException e) { returnable.cmdResult = e.toCommandResult(); } catch (Exception e) {