Page 1 of 1

getting timestamp (__clock64 equivalent)

PostPosted: Sat Jun 20, 2015 8:06 am
by mpoggi
Hello everybody,
I'm new to Parallella board and embedded programming in general, I hope I'm not asking a trivial question.
I'm porting a program on the board to evaluate its performance. It uses the __clock64() from OpenCL function to obtain a timestamp and I'd need something equivalent.
Is there anything in the Parallella SDK?
Thanks in advance

Re: getting timestamp (__clock64 equivalent)

PostPosted: Sun Jun 21, 2015 2:01 pm
by sebraa
I don't know about the OpenCL environment, but if you use the Epiphany SDK and plain C, you have access to the Timer/Counter blocks of the Epiphany. These allow you to count clock cycles (among other things), but are not well-suited for timestamps, since the counters stop at zero. Check the SDK documentation for the e_ctimer_* functions.

Re: getting timestamp (__clock64 equivalent)

PostPosted: Sat Jun 27, 2015 5:37 pm
by mpoggi
Thanks for your tip, I'll look better the docs to understand if it fits my case.