Hi all,
I want to measure the number of cpu cycles between two operations in a c
program. I am running a BBB rev C.1 on Debian (3.8.13-bone70). My code is
pretty simple:
#include
#include
int main(void) {
clock_t start,stop;
start=clock();
int j;
for(j=0;j<12345;j++){
; //
In my productive system I indeed have true operations in the for loop, I
just left them out. Also if I print out the value of clock() I also receive
a 0.0. For me it looks like the clock might not be initialized? But
don't know how to enable or initialize it...
--
For more options, visit
Hi all,
I want to measure the number of cpu cycles between two operations in a c
program. I am running a BBB rev C.1 on Debian (3.8.13-bone70). My code is
pretty simple:
#include
#include
int main(void) {
clock_t start,stop;
start=clock();
int j;
for(j=0;j<12345;j++){
; //
Hi all,
I am new in this forum so please correct me if I miss something.
Currently I am struggeling with some modifications on an already working
project from https://github.com/luigif/hcsr04 where a HCSR04 sonar is
triggered via PRU. The sample works fine and I tried to move this to
different