001    /*
002     @license.text@
003      */
004    package biz.hammurapi.metrics;
005    
006    /**
007     * @author Pavel Vlasov
008     *
009     * @version $Revision: 1.1 $
010     */
011    public interface TimeIntervalCategory {
012            /**
013             * 
014             * @return time in milliseconds or 0 if category is inactive
015             */
016            long getTime();
017    
018            /**
019             * Add new time interval measurement if category is active.
020             * @param name
021             * @param start
022             */
023            void addInterval(String name, long start);
024    
025    }