Forum Replies Created
- AuthorPosts
AthanasiosParticipantAthanasios May 23, 2019 at 8:06 am in reply to: printing of Timestamp of shr parsing //php bbp_reply_id(); ?>
Hello Andrew. Now I have a new problem with regards to the timestamp. I can’t write it on a csv file, I get the same enormous number like before. Do I need a special conversion before passing it to a csv because it is uint64_t ?
I passed integers and doubles into the csv without problems.
Regards,
Athanasios
AthanasiosParticipantAthanasios May 23, 2019 at 4:06 am in reply to: printing of Timestamp of shr parsing //php bbp_reply_id(); ?>
Hello Andrew.
I figured out the mistake.
I tried to print the timestamp while in the for loop that did the sweep.
It worked with : printf(“%” PRIu64 ” \n”,state2.timestamp);Thanks for all the help.
Regards,
Athanasios Loukas
AthanasiosParticipantAthanasios May 18, 2019 at 12:34 am in reply to: printing of Timestamp of shr parsing //php bbp_reply_id(); ?>
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
- AuthorPosts