Measure cpu time

Imperatorn johan_forsberg_86 at hotmail.com
Fri May 7 08:37:47 UTC 2021


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


More information about the Digitalmars-d-learn mailing list