lua-users home
lua-l archive

Re: Energy Benchmarks

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.
Scott

AltStyle によって変換されたページ (->オリジナル) /