Is it possible to get a timestamp of a data block on the XScope host application side and how (from the raw data block received through the hook_data_received() function)?
Thanks
Is it possible to get a timestamp of a data block on the XScope host application side and how (from the raw data block received through the hook_data_received() function)?
Thanks
Is it possible to get a timestamp of a data block on the XSc Topic is solved
-
- Member
- Posts: 11
- Joined: Fri Aug 01, 2014 12:21 pm
-
- Member
- Posts: 11
- Joined: Fri Aug 01, 2014 12:21 pm
To answer my own question - yes, it is possible:
void hook_data_received(int sockfd, int xscope_probe, void *data, int data_len) {
uint64_t* uint64_data = (uint64_t*) data;
uint64_t value = uint64_data[0];
uint64_t timestamp_picoseconds = uint64_data[1];
// ...
}
void hook_data_received(int sockfd, int xscope_probe, void *data, int data_len) {
uint64_t* uint64_data = (uint64_t*) data;
uint64_t value = uint64_data[0];
uint64_t timestamp_picoseconds = uint64_data[1];
// ...
}