Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamp for power calculation on host #98

Open
loostrum opened this issue Apr 14, 2023 · 0 comments
Open

Timestamp for power calculation on host #98

loostrum opened this issue Apr 14, 2023 · 0 comments

Comments

@loostrum
Copy link
Member

Since #97 the device produces a timestamp that is stored in the optional output file.
However the host does not use this in the power calculations. It still use the wall time as measured on the host whenever data arrives from the device.

While the device timestamp is more accurate, it has a potential issue: it rolls over every 1024 us. If the link with the host
drops for longer than that, the calculated total time would be inaccurate. This could cause a desync that gets worse over time.
It this high risk enough that we care? Or would it be ok to use the device timestamps in the host power calculations?
In the latter case we should manually keep track of the total time in a variable wider than the effective 10 bits of the device timestamp.

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

No branches or pull requests

1 participant