Update JavaDoc of SystemClock class (#5477)

Co-authored-by: Jack Berg <jberg@newrelic.com>
This commit is contained in:
damian-les 2023-06-14 16:18:37 +02:00 committed by GitHub
parent 04f5255245
commit a7a70aa7c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -8,7 +8,10 @@ package io.opentelemetry.sdk.common;
import io.opentelemetry.sdk.internal.JavaVersionSpecific;
import javax.annotation.concurrent.ThreadSafe;
/** A {@link Clock} that uses {@link System#currentTimeMillis()} and {@link System#nanoTime()}. */
/**
* A {@link Clock} that uses {@link JavaVersionSpecific#currentTimeNanos()} and {@link
* System#nanoTime()}.
*/
@ThreadSafe
final class SystemClock implements Clock {
@ -16,11 +19,7 @@ final class SystemClock implements Clock {
private SystemClock() {}
/**
* Returns a {@code MillisClock}.
*
* @return a {@code MillisClock}.
*/
/** Returns a {@link SystemClock}. */
static Clock getInstance() {
return INSTANCE;
}