2. I would also like to use Elapsedmilliseconds to find out how long several calculations in my 100fps game need. But 16ms is ways too inaccourate!
SOLUTION: can't you ask the BlitzBasic team how they adopted their Millisecs() to work with 1ms!?
PureBasic
Code: Select all
For i=1 To 1000000
sold=s : s=ElapsedMilliseconds() : If sold<>s : Debug s : EndIf
Next
End
6244921
6244937
6244953
6244968
6244984
6245000
6245015
6245031
6245046
Code in BlitzBasicDemo160
Code: Select all
For i=1 To 1000000
sold=s : s=MilliSecs() : If sold<>s : Print s : EndIf
Next
Delay(2000)
End
6244921
6244922
6244923
6244924
6244925
6244926
6244927
6244928
6244929
6244930
...
******************************************************************************
(P.S. I tried the code with an array instead of the debugger - it doesnt make a difference)