You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// After loading the preset, the settings in the preset will set to the device immediately. Therefore, it is recommended to re-read the device settings to update the user program temporarily.
Copy file name to clipboardExpand all lines: src/sys/frame.rs
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,42 @@ impl OBFrame {
18
18
self.inner
19
19
}
20
20
21
+
/// Get the frame timestamp (also known as device timestamp, hardware timestamp) of the frame in microseconds.
22
+
/// The hardware timestamp is the time point when the frame was captured by the device (Typically in the mid-exposure, unless otherwise stated), on device clock domain.
let timestamp = unsafe{ orb::ob_frame_get_system_timestamp_us(self.inner,&mut err_ptr)};
39
+
40
+
OBError::consume(err_ptr)?;
41
+
42
+
Ok(timestamp)
43
+
}
44
+
45
+
/// Get the global timestamp of the frame in microseconds.
46
+
/// The global timestamp is the time point when the frame was captured by the device, and has been converted to the host clock domain. The conversion process base on the frame timestamp and can eliminate the timer drift of the device
0 commit comments