I have time elapse problem with timer function. I required execute one function after every 20 minutes. Its work normal but AM and PM make problem for me. For example I store timer value at 11:50 PM. My function need to be executed at 12:10AM. But its not run so I reload whole program again it work normal. Please tell me how I can solve this problem.