Skip to content

Use mtime to measure times - #70

Open
talex5 wants to merge 1 commit into
mirage:masterfrom
talex5:mtime
Open

Use mtime to measure times#70
talex5 wants to merge 1 commit into
mirage:masterfrom
talex5:mtime

Conversation

@talex5

@talex5 talex5 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Using mtime has several advantages:

  • It isn't affected by changes to the system clock.
  • It has better precision.
  • Anything using Prometheus_app will have working time (without having to remember to call Prometheus.init itself).
    Since Prometheus_app includes the text formatter, this should be most things.

(When releasing v1.4, it turned out that using Prometheus_app without Prometheus_unix was more common than I expected in #68)

This has several advantages:

- It isn't affected by changes to the system clock.
- It has better precision.
- Anything using `Prometheus_app` will have working time
  (without having to remember to call `Prometheus.init` itself).
@talex5

talex5 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

With this change, OCurrent and OCluster tests pass without needing any changes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant