Skip to content

Commit

Permalink
Merge pull request #295 from brharrington/issue-293
Browse files Browse the repository at this point in the history
fixes #293, fix method name in docs
  • Loading branch information
brharrington committed Apr 26, 2016
2 parents 75d8f69 + 8bad91c commit 9059ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/intro/timer.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ Then wrap the call you need to measure:

```java
public Response handle(Request request) {
final long start = registry.clock().elapsedTime();
final long start = registry.clock().monotonicTime();
try {
return handleImpl(request);
} finally {
final long end = registry.clock().elapsedTime();
final long end = registry.clock().monotonicTime();
requestLatency.record(end - start, TimeUnit.NANOSECONDS);
}
}
Expand Down

0 comments on commit 9059ddd

Please sign in to comment.