I am making an app that is highly reliant on starting some work exactly on a given time. For example, the pseduo flow will be:
[23/02/2022 13:25:15] - Program starts and does some pre-processing
[23/02/2022 13:26:45] - Program has done pre-processing work. Program goes to sleep
[23/02/2022 13:30:00] - Program fires up and starts work
What is the most accurate way I can achieve this? I want to be able to start the work exactly on 13:30:00 (this time may change but just using as an example).
Note that I don't want to use the System Clock as I understand that isn't accurate enough for this purpose.
I do not have any code written for this so far. I'm at the research phase where I'm trying to understand / PoC the best way to achieve this.