I have made a program in c++ for changing the password of a system and I wanna run it for every 2 hours,then I end up with two choice in c++ ,one is Sleep(ms)
and the other is using recent thread lib this_thread::sleep_for(2h)[ 2h using std::chrono_literals]
.
The doubt I have been wandering is, does long pausing an exe
will work the way we want, is it any other better way than what i mentioned?
I have also planned to put my exe
as a windows service.