Category: System
Syntax:
sysProfileTime:Double(name:String)
Double
Returns the average time a named section takes each frame, in milliseconds.
Takes name (the section's name).
Returns the average time per frame spent in the named section (between sysProfileStart and sysProfileEnd) over the last second, in milliseconds. Updated once a second. Returns 0 for a section that hasn't been timed.
View detailed documentation online
If sysProfileTime("AI") > 5 Then
aiDetail = aiDetail - 1 ; the AI is taking too long
EndIf
BambooBasic © 2026 Michael Denathorn