nanosecond time

jkpl via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 13 11:28:12 PST 2016


On Saturday, 13 February 2016 at 19:24:44 UTC, ishwar wrote:
> I am stumped on need finding interval between two events in a 
> program execution  in nanoseconds. Any sample code will be 
> appreciated (along with imports needed to make it work):
> - time in nanoseconds-now
> - do-some processing
> - time in nano-second-now
>
> Thanks

use a StopWatch:

http://dlang.org/phobos/std_datetime.html#.StopWatch


More information about the Digitalmars-d-learn mailing list