public float getCount ( TimeUnit unit ) { int ord = unit . ordinal ; if ( counts [ ord ] == 0 ) { return 0 ; } return ( counts [ ord ] - 1 ) / 1000f ; }
Returns the count for the specified unit . If the unit is not set returns 0 .