Measuring Execution time

Clayton via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 22 03:46:49 PDT 2015


On Wednesday, 22 July 2015 at 09:32:15 UTC, John Colvin wrote:
> On Wednesday, 22 July 2015 at 09:23:36 UTC, Clayton wrote:
>> [...]
>
> The normal way of doing this would be using 
> std.datetime.StopWatch:
>
>     StopWatch sw;
>     sw.start();
>     algorithm();
>     long exec_ms = sw.peek().msecs;

Much appreciated, that works well John . Learning goes on... 
thanks again


More information about the Digitalmars-d-learn mailing list