DMD 2.099.1 fails to compile the benchmark example code from the readme:
Error: undefined identifier `StopWatch`
And after changing import std.datetime; to import std.datetime.stopwatch; the error message becomes:
Error: none of the overloads of template `core.time.to` are callable using argument types `!("msecs", float)(Duration)`
The readme does indeed mention DMD 2.068.0:
Measurements taken on a Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz with 8GB of memory. Compiled with dmd-2.068.0 using -O -release -inline flags.
But maybe updating this example to be usable with a modern compiler version would be useful? Please consider this a feature request.
DMD 2.099.1 fails to compile the benchmark example code from the readme:
And after changing
import std.datetime;toimport std.datetime.stopwatch;the error message becomes:The readme does indeed mention DMD 2.068.0:
But maybe updating this example to be usable with a modern compiler version would be useful? Please consider this a feature request.