Thread: Timevar?
View Single Post
  #4  
Old 05-10-2011, 04:01 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
It is a read-only variable.
Here is a simple, useless example.
PHP Code:
function onCreated() {
  
// set a variable to whatever timevar2 is currently
  
this.oldtime timevar2;
  
setTimer(5);
}

function 
onTimeout() {
  
// output the difference between the current time, and the old time to know how many seconds have passed
  
echo(timevar2 this.oldtime SPC "seconds passed");

Reply With Quote