See: Description
Interface | Description |
---|---|
Timer |
Represents timer responsible for counting the execution time.
|
Class | Description |
---|---|
SystemTimer |
Default implementation of the
Timer which based on the System.currentTimeMillis() method. |
Time |
Represents time counted by a
Timer . |
Contains types responsible for counting the execution time.
Example:
public class ExampleMojo extends AbstractMojo { public void execute() {Timer
timer =SystemTimer
.getStartedTimer(); // logic ... getLog().info("Finished in " + timer.stop()); } }
Copyright © 2015–2016 gabrys.biz. All rights reserved.