Skip to content

The benchmark example code from README.md fails to compile with recent DMD #194

Description

@ssvb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions