Re: [LAU] Anyone using a timer for taking breaks ?

From: Kevin Cosgrove <kevinc@email-addr-hidden>
Date: Tue Mar 06 2018 - 02:24:31 EET

On 5 March 2018 at 23:17, Gerhard Zintel <gerhard.zintel@web.de> wrote:

> On Monday 05 March 2018, jonetsu wrote:
> > On Mon, 05 Mar 2018 12:03:24 -0800
> >
> > Kevin Cosgrove <kevinc@cosgroves.us> wrote:
> > > I use a bash script. It's just a nested loop. One loop keeps track
> > > of the time interval between breaks. The other loop pops up PDFs of
> > > stretching routines to do during the breaks.
> >
> > I'd be a bit wary of resources. There's no direct access to time
> > functions in bash, always have to go through a high-level middleman.
> > The middleman would not get asked about time each fraction of a second,
> > but the bash loop to pace the asking could very well take some
> > noticeable CPU percentage. I guess to nice it down would be in order.
>
> If you use e.g. "sleep 60" in your bash loop before asking the time wouldn't
> that drop the CPU usage to something subtly?

Yes, but I don't take breaks every minute. ;-)
Mine is set to 3600.

--
Kevin
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Mon Jun 18 21:48:24 2018

This archive was generated by hypermail 2.1.8 : Mon Jun 18 2018 - 21:48:25 EEST