Speed Management

Blitz3D Forums/Blitz3D Beginners Area/Speed Management

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hey, well one way is to have 3 variables.

start_time
finish_time
total_time


Make start_time equal to the current timer to begin the count

start_time=millisecs()


Then when your finished testing the code

finish_time=millisecs()


then finally to work out the time passed

total_time=finish_time-start_time


the time in milliseconds taken will be stored in the total_time variable. Hope that helps!!