Package com.codahale.metrics.annotation
Annotation Type Timed
-
@Retention(RUNTIME) @Target(METHOD) public @interface Timed
An annotation for marking a method of an annotated object as timed. Given a method like this:
A timer for the defining class with the name@Timed(name = "fancyName") public String fancyName(String name) { return "Sir Captain " + name; }
fancyName
will be created and each time the#fancyName(String)
method is invoked, the method's execution will be timed.