circuits_gpio
circuits_gpio copied to clipboard
Fix GPIO interrupt timestamps
Currently the timestamps have an offset with :erlang.monotonic_time/0
. This is due to the code that sends the messages not living in a scheduler thread and therefore not having access to the monotonic time call in the NIF. It should be possible to calculate the time offset and account for it so that the timestamps can be compared with other events in Elixir.