![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.base.Stopwatch.class Maven / Gradle / Ivy
???? 4 ? g
h
i
j
/ h
k l 2
m n o p q
m r
s t u v
w x y
x z
{ |
} ~
h
?
? ?
?
? x ? x ? x ? x ? x ? x ? 0 ?
x ? ? ? ? ? ? ? ? ?
- h ? ? InnerClasses ticker Lcom/google/common/base/Ticker; isRunning Z elapsedNanos J startTick createUnstarted $()Lcom/google/common/base/Stopwatch; Code LineNumberTable C(Lcom/google/common/base/Ticker;)Lcom/google/common/base/Stopwatch; LocalVariableTable MethodParameters
createStarted ()V this "Lcom/google/common/base/Stopwatch; "(Lcom/google/common/base/Ticker;)V ()Z start
StackMapTable RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; stop tick reset ()J elapsed "(Ljava/util/concurrent/TimeUnit;)J desiredUnit Ljava/util/concurrent/TimeUnit; ()Ljava/time/Duration; 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; toString ()Ljava/lang/String; nanos unit value D
chooseUnit "(J)Ljava/util/concurrent/TimeUnit;
abbreviate 3(Ljava/util/concurrent/TimeUnit;)Ljava/lang/String;
SourceFile Stopwatch.java RuntimeVisibleAnnotations 8Lcom/google/common/base/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; emulated com/google/common/base/Stopwatch A B A E G : ? ? 2 3 ? ? ? com/google/common/base/Ticker 4 5 "This stopwatch is already running. ? ? ? N 8 7 "This stopwatch is already stopped. 6 7 6 N ? ? R ? ? ? ? ? \ ] java/lang/StringBuilder ? ? ? ? ? ^ _ V W ? R ? R ? R ? R ? R ? R ? ? ? ? ns μs ms s min h d java/lang/AssertionError java/lang/Object "com/google/common/base/Stopwatch$1 systemTicker !()Lcom/google/common/base/Ticker; $com/google/common/base/Preconditions checkNotNull 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkState (ZLjava/lang/Object;)V read java/util/concurrent/TimeUnit NANOSECONDS convert #(JLjava/util/concurrent/TimeUnit;)J java/time/Duration ofNanos (J)Ljava/time/Duration; com/google/common/base/Platform formatCompact4Digits (D)Ljava/lang/String; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; DAYS HOURS MINUTES SECONDS MILLISECONDS MICROSECONDS ($SwitchMap$java$util$concurrent$TimeUnit [I ordinal ()I 1 / 2 3 4 5 6 7 8 7 9 : ; ? Y? ? <