Differences

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

Link to this comparison view

mgl:functionreferencetiming [2009/06/11 01:21] (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);​
 +