K
k.sahici
Hi,
What I need to do is to make my program do sth(for instance execute a
function) everyday at 15.00.
Of course I can check the time in a seperate thread, and execute the
function just in time. However, that way seems silly to me. What's
more, it uses the cpu until it's 15.00 and maybe decreases efficiency.
Is there a professional way of waiting for a specific time of day in a
program?
Thanks
What I need to do is to make my program do sth(for instance execute a
function) everyday at 15.00.
Of course I can check the time in a seperate thread, and execute the
function just in time. However, that way seems silly to me. What's
more, it uses the cpu until it's 15.00 and maybe decreases efficiency.
Is there a professional way of waiting for a specific time of day in a
program?
Thanks