flaing / jnibwapi

Automatically exported from code.google.com/p/jnibwapi
0 stars 0 forks source link

elapsedTime() #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There is no access to the elapsedTime() function from the BWAPI.  Isn't this 
the only reliable number to compare to build times, etc.?  It would be a great 
benefit for AI's simply to include this one int.  

Original issue reported on code.google.com by mjh...@cornell.edu on 27 Oct 2014 at 9:50

GoogleCodeExporter commented 9 years ago
Isn't getFrameCount a more useful and accurate number?

This will give an elapsed time in game simulation ticks (frames), independent 
of what the game speed setting is on. For a conversion of that number into 
seconds, see 
https://code.google.com/p/bwapi/wiki/StarcraftGuide#What_is_Starcraft%27s_frame_
rate?

Is that ok or do you have a particular need for the elapsed time in seconds?

Original comment by phogle...@gmail.com on 27 Oct 2014 at 11:26

GoogleCodeExporter commented 9 years ago
Seems like this was a non-issue.

Original comment by phogle...@gmail.com on 11 Feb 2015 at 6:21