void function ( ) { if ( startTime > 0L ) { current += ( TimeUtils . nanoTime ( ) - startTime ) * nano2seconds ; startTime = 0L ; valid = true ; } }
stop counting , call this method right after you performed the task you want to keep track of . call #start againwhen you perform more of that task . concode_field_sep long startTime concode_elem_sep long lastTick concode_elem_sep FloatCounter load concode_elem_sep String name concode_elem_sep boolean valid concode_elem_sep FloatCounter time concode_elem_sep float nano2seconds concode_elem_sep float current concode_field_sep void start concode_elem_sep void reset concode_elem_sep String toString concode_elem_sep StringBuilder toString concode_elem_sep void tick concode_elem_sep void tick