Is there a penalty for calling millisecs()?

BlitzMax Forums/BlitzMax Beginners Area/Is there a penalty for calling millisecs()?

graphicswidth() is a really fast command. Just not so fast to type!

I tested it
Graphics 800,600

Const am=10000000

For do=1 To 2

	Delay 500
	
	time=MilliSecs()
	For l=1 To am
		aoksdgmnaorigm=GraphicsWidth()
	Next
	took=MilliSecs()-time
	Print "function: "+took
	
	Delay 500
	
	time=MilliSecs()
	holder=GraphicsWidth()
	For l=1 To am
		lsgmaprgmsgrgsrf=holder
	Next
	took=MilliSecs()-time
	Print "variable: "+took
	
Next