Mar-31-2021, 03:55 AM
I believe the OP would like a timer where you can insert an event to be scheduled before an event that is already in the timer. That isn't something you can do with sleep, mostly because you are busy sleeping.
There are many ways to do this, but the choice is decided by what you are scheduling. If you want to schedule an event in a GUI you use the tools built into your GUI toolkit. Outside a GUI I would look at using the event scheduling library (sched) or maybe a threading event.
There are many ways to do this, but the choice is decided by what you are scheduling. If you want to schedule an event in a GUI you use the tools built into your GUI toolkit. Outside a GUI I would look at using the event scheduling library (sched) or maybe a threading event.