Skip to content

Commit b86dd4b

Browse files
authored
Add notes to dist-summary and timer that negative values are dropped. (#189)
1 parent d1b88c5 commit b86dd4b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/spectator/lang/java/meters/dist-summary.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ Then call record when an event occurs:
2222
}
2323
}
2424
```
25+
**Note:** If the amount recorded is less than 0 the value will be dropped.

docs/spectator/lang/java/meters/timer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ is recommended to use a monotonically increasing source for measuring the times,
4646
occasionally having bogus measurements due to time adjustments. For more information, see the
4747
[Clock documentation](../../../core/clock.md).
4848

49+
**Note:** If the amount recorded is less than 0 the value will be dropped.
50+
4951
## LongTaskTimer
5052

5153
To get started, create an instance using the [Registry](../registry/overview.md):

0 commit comments

Comments
 (0)