Thread: System Clock?
View Single Post
  #6   Spotlight this post!  
Unread 10-02-2005, 22:16
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: System Clock?

Quote:
Originally Posted by sciguy125
Programming isn't my field of expertise, so correct me if I'm wrong, but isn't user_routines (or whatever that user function is called) called every 26.5ms? If so, couldn't you just count how many time's it's been called. Increment some variable or something. I'm not sure how exact the time is on it though...

It's not 26.2ms, unless my conversion was wrong..
I had
(counter*26.2)/1000 or..maybe it was 10000
Which should give me seconds.. but didn't. Not too sure what was going on there, but it didn't seem that accurate