String function ( ) { long loc0 = elapsedNanos ( ) ; TimeUnit loc1 = chooseUnit ( loc0 ) ; double loc2 = ( double ) loc0 / NANOSECONDS . convert ( 1 , loc1 ) ; return String . format ( Locale . ROOT , "srini_string" , loc2 , abbreviate ( loc1 ) ) ; }
returns a string representation of the current elapsed time . concode_field_sep Ticker ticker concode_elem_sep long elapsedNanos concode_elem_sep boolean isRunning concode_elem_sep long startTick concode_field_sep long elapsed concode_elem_sep String abbreviate concode_elem_sep Stopwatch createUnstarted concode_elem_sep Stopwatch createUnstarted concode_elem_sep long elapsedNanos concode_elem_sep Stopwatch stop concode_elem_sep boolean isRunning concode_elem_sep TimeUnit chooseUnit concode_elem_sep Stopwatch createStarted concode_elem_sep Stopwatch createStarted concode_elem_sep Stopwatch start concode_elem_sep Stopwatch reset