[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Energy Benchmarks
- From: Scott Morgan <blumf@...>
- Date: Tue, 2 Apr 2019 11:59:00 +0100
On 02/04/2019 08:23, Italo Maia wrote:
One thing I've run into recently was a need to sleep the app regularly.
I don't think there's anything in ANSI C that can handle that, so the
alternatives are: to loop whilst checking os.time, not very energy
efficient, or os.execute an external sleep util (the solution I took),
not very portable.
Of course, there are libraries that provide the functionality. Just
depends how 'pure' you want things.