Closed LVala closed 3 months ago
I suspect I experienced this locally during multiple subsequent runs of mix test
!
@clone1018 most likely, I didn't recompile the module for some time (I guess the baked-in base timestamp value was somehow valid?). I noticed the issue when updating the Elixir version.
The
TWCCRecorder
module has a default argument that keeps the initial value ofSystem.monotonic_time()
(so the subsequent calls could be offset to be positive, as output ofSystem.monotonic_time()
is usually negative). The value is evaluated at the compile time and differs from the runtime baseSystem.monotonic_time()
value, which is obviously undesired. This PR fixes this issue.