etiennedub / pyk4a

Python 3 wrapper for Azure-Kinect-Sensor-SDK
MIT License
288 stars 81 forks source link

Add functions to access system timestamps for each image #122

Closed johan12345 closed 3 years ago

johan12345 commented 3 years ago

The system timestamps in nanoseconds are available from the C SDK using the k4a_image_get_system_timestamp_nsec() function. These correspond quite well to Python's time.perf_counter_ns(), so I suppose they should be useful in Python as well (e.g. for synchronization with other cameras).

codecov[bot] commented 3 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@a103046). Click here to learn what that means. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop     #122   +/-   ##
==========================================
  Coverage           ?   86.47%           
==========================================
  Files              ?       10           
  Lines              ?      710           
  Branches           ?        0           
==========================================
  Hits               ?      614           
  Misses             ?       96           
  Partials           ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a103046...1f1dd81. Read the comment docs.

lpasselin commented 3 years ago

Thanks a lot for the PR!