On Monday, 1 July 2013 at 18:09:32 UTC, Jonathan M Davis wrote:
On Monday, July 01, 2013 18:32:30 CJS wrote:
Is there some header/module that includes declaration for all C
standard libraries?
I'm wondering both in general for future reference, and for the
specific case of wanting to time a function and not knowing
what
in D--even after looking through the docs--would do something
equivalent to clock and CLOCKS_PER_SEC in the C standard
library
time.h.
If you want to time a function, checkout std.datetime.StopWatch:
http://dlang.org/phobos/std_datetime.html#StopWatch
+1
I really came to hate c's clock, StopWatch has been much more
pleasant experience to work with.