Is it possible to get a timestamp of a data block on the XSc Topic is solved

If you have a simple question and just want an answer.
zivke
Member
Posts: 11
Joined: Fri Aug 01, 2014 12:21 pm

Is it possible to get a timestamp of a data block on the XSc

Post by zivke »

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



View Solution
zivke
Member
Posts: 11
Joined: Fri Aug 01, 2014 12:21 pm

Post by zivke »

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];
    // ...
}