How to get timestamp in microseconds using Psoc5lp

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
PrSa_4352851
Level 1
Level 1
First like given

Hello,

I am using Psoc Creator IDE for programming my Psoc 5LP. I want to get timestamp in microseconds to get the value for a particular function. I have tried your preprocessor __DATE__ and __TIME__ but it doesn't give value in microseconds. Do you happen to know any preprocessor which can give the timestamp in microseconds. Is there any easy way to get that apart from adding components like counter or RTC. I also tried struct timeval but I am having issues with the precision.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.

PrSa,

Attached updated project, tested OK on PSoC5.

/odissey1

StopWatch_P5_01d_demo_A.png

StopWatch_P5_01d_demo_B.png

View solution in original post

14 Replies