I want delay while calling buzzStart() then when calling buzzStop
delay finish.
How can I do this?
public class BuzzerSignaler{
     private long timeout;
     public void buzzStart() throws Exception {
        this.timeout = 0;
        action('1');
     }
     public void buzzStart(long timeout) throws Exception {
         this.timeout = timeout;
        //some code for delay
     }
     public void buzzStop() throws Exception {
        //stop delay
        action('0');
     }
     private void action(char offOn) throws Exception {
     }
    }