Skip to content

Commit

Permalink
Warn that [elapsedRealtimeNanos requires API Level 17](https://deve…
Browse files Browse the repository at this point in the history
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Sep 1, 2021
1 parent f79d923 commit 54c174a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/guava/src/com/google/common/base/Stopwatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
* Stopwatch.createStarted(
* new Ticker() {
* public long read() {
* return android.os.SystemClock.elapsedRealtimeNanos();
* return android.os.SystemClock.elapsedRealtimeNanos(); // requires API Level 17
* }
* });
* }</pre>
Expand Down
2 changes: 1 addition & 1 deletion guava/src/com/google/common/base/Stopwatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
* Stopwatch.createStarted(
* new Ticker() {
* public long read() {
* return android.os.SystemClock.elapsedRealtimeNanos();
* return android.os.SystemClock.elapsedRealtimeNanos(); // requires API Level 17
* }
* });
* }</pre>
Expand Down

0 comments on commit 54c174a

Please sign in to comment.