1. 13 May, 2023 1 commit
    • util: make monotonic time fn return ms · 6c0d5b11
      `git__timer` is now `git_time_monotonic`, and returns milliseconds
      since an arbitrary epoch.
      
      Using a floating point to store the number of seconds elapsed was
      clever, as it better supports the wide range of precision from the
      different monotonic clocks of different systems. But we're a version
      control system, not a real-time clock.
      
      Milliseconds is a good enough precision for our work _and_ it's the
      units that system calls like `poll` take and that our users interact
      with.
      
      Make `git_time_monotonic` return the monotonically increasing number
      of milliseconds "ticked" since some arbitrary epoch.
      Edward Thomson committed
  2. 23 Feb, 2022 2 commits
  3. 11 Nov, 2021 1 commit
  4. 21 Nov, 2020 1 commit
  5. 24 Jan, 2020 1 commit
  6. 28 Nov, 2019 1 commit
    • tests: fix compiler warning if tracing is disabled · 1d470a71
      If building libgit2's test suite with tracing disabled, then the
      compiler will emit a warning due to the unused `message_prefix`
      function. Fix the issue by wrapping the whole file into ifdef's for
      `GIT_TRACE` and providing separate empty function implementations for
      both `cl_global_trace_register` and `cl_global_trace_disable`.
      Patrick Steinhardt committed
  7. 27 Nov, 2019 2 commits
  8. 29 Jun, 2015 1 commit
  9. 02 Mar, 2015 3 commits