leductam
Monotonic time and the duration in Telemetry
I’ve just used a bit about the Telemetry and got some confusion about duration.
- Duration might be zero at an unspecified point in time
- Duration = n*1024 (n >= 0)
I read the statement about Erlang monotonic time, and understood about #1, but don’t understand about why 1024 in #2.
Could you please help to clarify?
Marked As Solved
RudManusachi
Seems like it’s specific to Windows:
Here’s what I found about QueryPerformanceCounter (QPC):
one
QPCtick is 1024rdtscticks
Also Liked
keathley
As stated before, if you are passing durations in telemetry measurements, you use System.monotonic_time to capture the starting point and ending point and take the difference between the two. This is now a duration in “native” units. Which will be unique to your system. The convention is to use native units unless specified otherwise as described here: Telemetry Conventions.
You can convert the duration into a different unit of time like so: System.convert_time_unit(duration, :native, :millisecond).
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








