public void start ( long interval , TimeUnit unit ) { if ( ! isValid ( ) ) { return ; } long period = unit . toMillis ( interval ) ; if ( period < 0 ) { return ; } _profileTask . stop ( ) ; _profileTask . setPeriod ( period ) ; _profileTask . start ( ) ; _state = StateProfile . ACTIVE ; }
Starts a dedicated profile .