public class com.codahale.metrics.Timer$Context implements java.lang.AutoCloseable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.codahale.metrics.Timer$Context
super_class: java.lang.Object
{
private final com.codahale.metrics.Timer timer;
descriptor: Lcom/codahale/metrics/Timer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.codahale.metrics.Clock clock;
descriptor: Lcom/codahale/metrics/Clock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long startTime;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private void <init>(com.codahale.metrics.Timer, com.codahale.metrics.Clock);
descriptor: (Lcom/codahale/metrics/Timer;Lcom/codahale/metrics/Clock;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.codahale.metrics.Timer$Context.timer:Lcom/codahale/metrics/Timer;
2: aload 0
aload 2
putfield com.codahale.metrics.Timer$Context.clock:Lcom/codahale/metrics/Clock;
3: aload 0
aload 2
invokevirtual com.codahale.metrics.Clock.getTick:()J
putfield com.codahale.metrics.Timer$Context.startTime:J
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/codahale/metrics/Timer$Context;
0 5 1 timer Lcom/codahale/metrics/Timer;
0 5 2 clock Lcom/codahale/metrics/Clock;
MethodParameters:
Name Flags
timer
clock
public long stop();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield com.codahale.metrics.Timer$Context.clock:Lcom/codahale/metrics/Clock;
invokevirtual com.codahale.metrics.Clock.getTick:()J
aload 0
getfield com.codahale.metrics.Timer$Context.startTime:J
lsub
lstore 1
start local 1 1: aload 0
getfield com.codahale.metrics.Timer$Context.timer:Lcom/codahale/metrics/Timer;
lload 1
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.codahale.metrics.Timer.update:(JLjava/util/concurrent/TimeUnit;)V
2: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/codahale/metrics/Timer$Context;
1 3 1 elapsed J
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.codahale.metrics.Timer$Context.stop:()J
pop2
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/Timer$Context;
}
SourceFile: "Timer.java"
NestHost: com.codahale.metrics.Timer
InnerClasses:
public Context = com.codahale.metrics.Timer$Context of com.codahale.metrics.Timer