Module containing some basic benchmarking and timing functionality.
For convenience, this module publicly imports
Unlike the other modules in std.datetime, this module is not currently
publicly imported in std.datetime.package, because the old
versions of this functionality which use
core are in std.datetime.package and would
conflict with the symbols in this module. After the old symbols have
gone through the deprecation cycle and have been fully removed, then
this module will be publicly imported in std.datetime.package. The
old, deprecated symbols are currently scheduled to be removed from the
documentation in October 2018 and fully removed from Phobos in October
So, for now, when using std.datetime.stopwatch, if other modules from std.datetime are needed, then either import them individually rather than importing std.datetime, or use selective or static imports to import std.datetime.stopwatch. e.g.
The compiler will then know to use the symbols from std.datetime.stopwatch rather than the deprecated ones from std.datetime.package.
||Benchmarks code for speed assessment and comparison.|
||StopWatch is used to measure time just like one would do with a physical stopwatch, including stopping, restarting, and/or resetting it.|
||Used by StopWatch to indicate whether it should start immediately upon construction.|
Jonathan M Davis and Kato Shoichi