Thread: RPM calculator
View Single Post
  #21   Spotlight this post!  
Unread 05-03-2012, 01:19
nickpeq nickpeq is offline
Turing-complete
FRC #1255 (Blarglefish)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Baytown, TX
Posts: 60
nickpeq is an unknown quantity at this point
Re: RPM calculator

I generally use System.nanoTime() for anything in Java. It's overkill, but I've never found a reason NOT to use it.
You could measure the dT that it takes to get the latest count and see how negligible it is. (or isn't)

Last edited by nickpeq : 05-03-2012 at 01:22.
Reply With Quote