What is the best way to implement a high-resolution timer that continuously checks for time in a loop, and does a task after it passes a certain point in time? e.g. check what time it is in a loop from 9am onwards and perform a task exactly at 11am. I require the timing to be precise (i.e. no more than 1 microsecond after 9am).
I am running Linux CentOS 7.3 on a server, and have no issues with dedicating CPU resources to execute this task.
Aucun commentaire:
Enregistrer un commentaire