hardbyte / hardbyte/python-can

Store timestamps in nanosecond precision

オープン
#722 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
1.6k
フォーク
697
PR マージ指標
30日以内にマージされた PR はありません

説明

We currently store timestamps in float format while most interfaces and log formats use some integer representation. Converting these to floating point is a lossy operation.

My proposal is to add an additional `timestamp_ns` argument and attribute to the Message class. On initialization, if the `timestamp` argument is given it would be converted to ns. The `.timestamp` attribute can be dynamically calculated on get and set.

It would be fairly trivial to update the interfaces and log formats to use ns timestamps instead.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。