On Friday, 7 May 2021 at 08:37:47 UTC, Imperatorn wrote:
On Friday, 7 May 2021 at 08:25:43 UTC, Andre Pany wrote:
Hi,

I try to convert some python code to D. On python I can get the cpu time for the current
process using

``` python
dcpu: float = time.process_time()
```

Is there some equivalent function in Phobos to get the cpu time on linux?

Kind regards
André

Take a look at https://code.dlang.org/packages/getr

Thanks a lot :)

Kind regards
André

Reply via email to