How to find the right function in the Phobos library?
Vinod K Chandran
kcvinu82 at gmail.com
Sun Aug 18 16:18:04 UTC 2024
On Saturday, 17 August 2024 at 19:54:07 UTC, Richard (Rikki)
Andrew Cattermole wrote:
>
> https://dlang.org/phobos/core_thread_osthread.html#.Thread.sleep
>
> Worth noting is that sleeping is not equivalent to performing
> work. It's the exact opposite, the lack of work.
>
Thanks Rikki. Actually, I was checked `core.thread` page. But at
the top, after a speedy search, unfprtunately, I couldn't find
anything. Now, I can see that beneath first second `Jump to`
section, there is a `sleep`.
>
> If you want to simulate work being done, use a loop with a stop
> watch to determine how much time has progressed.
>
Point noted. Thanks!
More information about the Digitalmars-d-learn
mailing list