Skip to content

Suggestion: Switch back to std::chrono::high_resolution_clock #3

@BerriJ

Description

@BerriJ

Hi,

I figured the cause of the MacOS compilation problem that I mentioned earlier. It turns out that those 2 #defines were causing trouble:

#define duration(a) std::chrono::duration_cast<std::chrono::nanoseconds>(a).count()
#define now() std::chrono::steady_clock::now()

You can check out this clock.h file which compiles fine on every OS.

That said, you may want to switch back to using std::chrono::high_resolution_clock as it may be more accurate as discussed here.

Thanks again for this awesome package
BerriJ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions