bitcraze / crazyflie-lib-python

Python library to communicate with Crazyflie
Other
250 stars 889 forks source link

pcap logging; Timestamps wrapping after 59 seconds. #454

Closed ToveRumar closed 4 months ago

ToveRumar commented 4 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 4 months ago

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

gemenerik commented 4 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 4 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