Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Crystal::System::Time.ticks #14620

Commits on May 23, 2024

  1. Simplify Crystal::System::Time.monotonic (Windows)

    The C functions are guaranteed to never fail since Windows XP. Also
    changes the frequency counter to be lazily initialized on demand (when
    needed) instead of always initializing it during program bootstrap.
    ysbaddaden committed May 23, 2024
    Configuration menu
    Copy the full SHA
    51d8192 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6b33390 View commit details
    Browse the repository at this point in the history
  3. Add Crystal::System::Time.ticks

    Returns the current time as per the monotonic clock in nanoseconds.
    Doesn't fail (i.e. doesn't raise) and doesn't allocate into the GC
    HEAP, so we can use it in tight contexts.
    ysbaddaden committed May 23, 2024
    Configuration menu
    Copy the full SHA
    426d54d View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Configuration menu
    Copy the full SHA
    6eeb4df View commit details
    Browse the repository at this point in the history