Skip to content

Commit

Permalink
update packageinfo example for Timers
Browse files Browse the repository at this point in the history
Signed-off-by: Don Bourne <dbourne@ca.ibm.com>
  • Loading branch information
donbourne committed Aug 10, 2022
1 parent 3197ee2 commit 25d1266
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -89,11 +89,9 @@
* <pre>
* <code>
* Timer timer = metricRegistry.timer(metadata);
* Timer.Context context = timer.time();
*
* ... // code that will be timed
*
* context.close();
* try (Timer.Context context = timer.time()) {
* ... // code that will be timed
* }
* </code>
* </pre>
*/
Expand Down

0 comments on commit 25d1266

Please sign in to comment.