Couldn't you do it as a linux/unix cron job? That way, for a certain period, you could write a script that runs daily at a time you specify, and multiplies the two numbers? In doing so, you avoid a loop within your program ... the program script you create just runs at the appointed time and multiplies two numbers.
Look up the Linux/UNIX cron command...
here's the wiki description ... https://en.wikipedia.org/wiki/Cron
Couldn't you do it as a linux/unix cron job? That way, for a certain period, you could write a script that runs daily at a time you specify, and multiplies the two numbers? In doing so, you avoid a loop within your program ... the program script you create just runs at the appointed time and multiplies two numbers.
Look up the Linux/UNIX cron command...
here's the wiki description ... https://en.wikipedia.org/wiki/Cron