getting timestamp (__clock64 equivalent)

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

getting timestamp (__clock64 equivalent)

Postby mpoggi » Sat Jun 20, 2015 8:06 am

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
mpoggi
 
Posts: 2
Joined: Wed Jun 17, 2015 7:34 pm

Re: getting timestamp (__clock64 equivalent)

Postby sebraa » Sun Jun 21, 2015 2:01 pm

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.
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: getting timestamp (__clock64 equivalent)

Postby mpoggi » Sat Jun 27, 2015 5:37 pm

Thanks for your tip, I'll look better the docs to understand if it fits my case.
mpoggi
 
Posts: 2
Joined: Wed Jun 17, 2015 7:34 pm


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 20 guests

cron