Reply To: printing of Timestamp of shr parsing

Forums General Discussions printing of Timestamp of shr parsing Reply To: printing of Timestamp of shr parsing

#223377
Athanasios
Participant

Hello Nick and Andrew. Thank you for your replies.

I used ” printf(“%llu \n”,state2.timestamp); ” like you suggested but still got an enormous undefined number.
(Although I get this weird warning for %llu : “unknown conversion type character ‘l’ in format [-WFORMAT=] )

Different result but still enormous number while trying with “%” PRIu64 ” \n”.

I checked the signal hound code again, and there is a comment next to unint64_t timestamp saying //milliseconds since epoch. So the timestamp is encoded in epoch time format.

I can’t figure out what is wrong. I am using C++, a GCC compiler.
I imported the shr file to Spike and i saw that the timestamp I need to get is 20/3/19 9:37:46.

I saw another function in the signal hound code called “vrtGetTime”. Will that also give me the timestamp?

Athanasios