Configure some timer for one second or so; execute the following code in the timer handler: counter++; if (counter >= 60 * 30) { counter = 0; // 30 minutes have elapsed }
↧