镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Use std::chrono::high_resolution_clock for LV::Time::now() #157

Open

Description

@kaixiong

LV::Time::now() currently uses platform-specific implementations for its high resolution clock. Port it to use C++11's std::chrono::high_resolution_clock instead. It has a nicer interface and has better portability.

Caveat: VS2012's implementation does not use QueryPerformanceCounter and has resolution issues (
source). Resolved in VS2015. We currently only target MinGW and now require C++20, so it does not really matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions