Go to Post The best parts of FIRST just cannot be described. They have to be experienced. - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 13-02-2014, 11:12
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 332
fovea1959 will become famous soon enough
Timer.getFPGATimestamp() vs System.currentTimeMillis()

coming from a desktop/server Java background, I've always used System.currentTimeMillis() for elapsed time calcs, and we use it on our bot consistently.

Just noticed Timer.getFPGATimestamp(), which strikes me as *probably* being better than System.currentTimeMillis() (though the former might be using the latter for all I know).

Anyone have any insight as too whether the two differ significantly? Don't want to do the rework if not significantly better (though will start with Timer.getFPGATimestamp() next year!)
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi