Re: sleep 3600 vs task scheduler

2020-04-07 Thread ToddAndMargo via perl6-users
On 2020-04-07 20:44, ToddAndMargo via perl6-users wrote: On 2020-04-07 20:39, Paul Procacci wrote: What happens when you try it? What impact do you observe? My guess is the impact is exactly the time it takes for your cpu to perform the initial context switch for the syscall, and then another

Re: sleep 3600 vs task scheduler

2020-04-07 Thread ToddAndMargo via perl6-users
On 2020-04-07 20:39, Paul Procacci wrote: What happens when you try it? What impact do you observe? My guess is the impact is exactly the time it takes for your cpu to perform the initial context switch for the syscall, and then another when waking up. Hi Paul, I opened the resource monitor

Re: sleep 3600 vs task scheduler

2020-04-07 Thread Paul Procacci
What happens when you try it? What impact do you observe? My guess is the impact is exactly the time it takes for your cpu to perform the initial context switch for the syscall, and then another when waking up. On Tue, Apr 7, 2020 at 10:28 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> w

Re: sleep 3600 vs task scheduler

2020-04-07 Thread ToddAndMargo via perl6-users
On Tue, Apr 7, 2020 at 6:02 AM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: Hi All, Windows 7/10 Another piece of the puzzle. I want to loop Raku program once an hour. Is it better use `sleep 3600` or let the program die and restart every hour fro

Re: sleep 3600 vs task scheduler

2020-04-07 Thread Brad Gilbert
Run code once an hour: react whenever Supply.interval(60 * 60) { say "it's been an hour" } Right now that gets about 0.01 seconds slower every time the interval runs. (At least on my computer.) So it will get 1 second later every 4 days. Or if you want more precise control, you