bitcraze / crazyflie-lib-python

Python library to communicate with Crazyflie
Other
263 stars 896 forks source link

pcap logging; Timestamps wrapping after 59 seconds. #454

Closed ToveRumar closed 6 months ago

ToveRumar commented 6 months ago

The datetime object does not hold total seconds since Epoch time.The seconds variable is only seconds since last full minute. We need a deltatime since Epoch start to get total seconds since then

ToveRumar commented 6 months ago

Fixes the issue from this discussion; https://github.com/orgs/bitcraze/discussions/1278

gemenerik commented 6 months ago

Wireshark wiki confirms it should be seconds since Unix time. You could consider using time.time() since that returns Unix time in seconds.

ToveRumar commented 6 months ago

Wireshark wiki confirms it should be seconds since Unix time. You could consider using time.time() since that returns Unix time in seconds.

I liked that solution better. See update