Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mgl:functionreferencetiming [2009/06/10 18:21]
mgl:functionreferencetiming [2022/08/30 13:40] (current)
Line 1: Line 1:
 +====== Timing functions ======
 +
 +===== mglGetSecs: Get time in seconds =====
 +
 +** purpose:** Get current or elapsed time \\ **usage:** mglGetSecs(<​t0>​)
 +
 +^ argument ^ value ^
 +| t0 | start time from which to compute elapsed time |
 +
 +To get current time
 +
 +  t=mglGetSecs
 +
 +Get elapsed time since t0
 +
 +  t0 = mglGetSecs;
 +  elapsedTime=mglGetSecs(t0)
 +
 +===== mglWaitSecs:​ Wait for a time in seconds =====
 +
 +** purpose:** Wait for some time \\ **usage:** mglWaitSecs(waitTime)
 +
 +^ argument ^ value ^
 +| waitTime | time to wait for in seconds |
 +
 +Wait 3.3 seconds:
 +
 +  mglWaitSecs(3.3);​
 +