c++ - Can we use a timer for itself? -


Actually this is what I have to do;

When a situation is seen, my program will stop itself and it will open again after five minutes.

Is it possible with only one .exe - using any OS property -?

I do it with two .exe

  if (close to turnkey) {// call secondary program system ("secondary.exe"); Return (0); }  

And my secondary program only waits for five minutes and makes primary calls.

  main () {sleep (300000) // sleep minutes for five; System ("primary .exe"); Return (0); }  

I want to do this without a secondary program.

(sorry for bad english)

You can use it with an application Can be done if a switch is given (like myapp.exe / startme ).

The system () is a synchronous call, it only happens when the command run is over. The Wi-Fi only has what you are looking for.

You can also follow the instructions to set your time using the OS to employ your job.

But, depending on what you are trying to achieve, a better solution may be to hide your app for only 5 minutes.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -