Go to advanced search

by josephsherratt
Sat Jun 21, 2014 7:24 pm
Forum: C/C++
Topic: Time passed in microseconds
Replies: 2
Views: 1893

Re: Time passed in microseconds

Thanks a lot! Works perfect
by josephsherratt
Fri Jun 20, 2014 10:39 pm
Forum: C/C++
Topic: Time passed in microseconds
Replies: 2
Views: 1893

Time passed in microseconds

I am trying to write a code to measure the distance using a HC-SR04 module in C on my PI. I am struggling to measure the time taken in microseconds such as:

start_time = time_in_microseconds

*code*

end_time = time_in_microseconds

Any help would be much appreciated. Thanks

Go to advanced search