1972996ffc
Functions format_simple_command and format_and_return_simple_command are used to print runtimes right now. They are called from within every single command and use Ruby's 'yield' magic. Instead, we can simplify it using 'command_safe' function. Since command_safe wraps all commands, we can simply time before and after we call individual command. If a command only wants to time a part of its logic, it can set instance variables start_time and end_time accordingly which is far more simpler to understand and work with than 'yield'. Change-Id: Ibfacf3593175af22fc4f7d80896dd2f6d7c5dde3 |
||
---|---|---|
.. | ||
src | ||
pom.xml |