Measure cpu time

Andre Pany andre at s-e-a-p.de
Fri May 7 08:42:10 UTC 2021


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é


More information about the Digitalmars-d-learn mailing list