Skip to content

Use steady clock for all millis bench logging#25499

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2206-steady-🏑
Sep 16, 2022

Hidden character warning

The head ref may contain hidden characters: "2206-steady-\ud83c\udfd1"
Merged

Use steady clock for all millis bench logging#25499
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2206-steady-🏑

Conversation

@maflcko

@maflcko maflcko commented Jun 29, 2022

Copy link
Copy Markdown
Member

Currently GetTimeMillis is used for bench logging in milliseconds integral precision. Replace it to use a steady clock that is type-safe and steady.

Microsecond or float precision can be done in a follow-up.

@DrahtBot

DrahtBot commented Jun 29, 2022

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #25830 (refactor: Replace m_params with chainman.GetParams() by aureleoules)
  • #25665 (refactor: Add util::Result failure values, multiple error and warning messages by ryanofsky)
  • #25284 ([WIP] consensus: Remove dependency on net (BIP 155 / ADDRV2_FORMAT) by MarcoFalke)
  • #18904 (Don't call lsn_reset in periodic flush by bvbfan)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@fanquake fanquake left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK fa521c9 - started making the same change.

@fanquake fanquake merged commit 08785aa into bitcoin:master Sep 16, 2022
@maflcko maflcko deleted the 2206-steady-🏑 branch September 16, 2022 10:43
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Sep 20, 2022
fa521c9 Use steady clock for all millis bench logging (MacroFake)

Pull request description:

  Currently `GetTimeMillis` is used for bench logging in milliseconds integral precision. Replace it to use a steady clock that is type-safe and steady.

  Microsecond or float precision can be done in a follow-up.

ACKs for top commit:
  fanquake:
    ACK fa521c9 - started making the same change.

Tree-SHA512: 86a810e496fc663f815acb8771a6c770331593715cde85370226685bc50c13e8e987e3c5efd0b4e48b36ebd2372255357b709204bac750d41e94a9f7d9897fa6
@bitcoin bitcoin locked and limited conversation to collaborators Sep 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants