marcelo
11/01/2018, 6:59 PMmetrics.timer(timerName, successTag).time {
throw IllegalArgumentException("Stop")`
Shawn
11/01/2018, 7:00 PMtoTime()
in your real codeShawn
11/01/2018, 7:03 PMmarcelo
11/01/2018, 7:05 PMmetrics.timer(timerName, successTag).time {
"Test".capitalize() }
marcelo
11/01/2018, 7:05 PMmarcelo
11/01/2018, 7:05 PMShawn
11/01/2018, 7:06 PMTimer1.time()
it looks like you’re accepting a block but never actually executing itShawn
11/01/2018, 7:06 PMtry {
toTime
sans ()
Shawn
11/01/2018, 7:07 PMmarcelo
11/01/2018, 7:08 PMmarcelo
11/01/2018, 7:08 PMmarcelo
11/01/2018, 7:09 PMShawn
11/01/2018, 7:09 PMShawn
11/01/2018, 7:09 PMThe expression is unused
Shawn
11/01/2018, 7:10 PMShawn
11/01/2018, 7:11 PMinline
fun to reduce overhead, but I suppose it shouldn’t matter if you’re just comparing runs against each othermarcelo
11/01/2018, 7:51 PMShawn
11/01/2018, 7:53 PMShawn
11/01/2018, 7:53 PM