Example #1
0
 def postcmd(self, stop, line):
     StopWatch.stop("command")
     if Default.timer:
         print("Timer: {:.4f}s ({})".format(StopWatch.get("command"),
                                            line.strip()))
     return stop
Example #2
0
 def postcmd(self, stop, line):
     StopWatch.stop("command")
     if Default.timer():
         print("Timer: {:.4f}s ({})".format(StopWatch.get("command"), line))
     return stop
Example #3
0
 def precmd(self, line):
     StopWatch.start("command")
     return line
Example #4
0
 def precmd(self, line):
     StopWatch.start("command")
     return line