GetTime()The function returns time in secods since the program started. Example:
nStartTime = GetTime()
for i=1 to 10
DrawRectangle(100,100,300,200)
next
nEndTime = GetTime()
SetColor("black")
DrawText(100, 125, "10 rectangles were drawn" & chr(10) & chr(13) & " in " & (nEndTime - nStartTime) & " seconds")
This is how result would look like (red coordinates are just for reference):