From Second Life Wiki
Jump to: navigation, search


Function: float llGetAndResetTime( );

Returns a float that is script time in seconds and then resets the script time to zero.


Script time is the amount of time the script has been running since it first started, was most recently reset, or one of the reset functions was called. It is unaffected by time dilation.


All Issues ~ Search JIRA for related Bugs


    touch_start(integer num_touch)
        // This is equivalent to calling llGetTime(), then llResetTime()
        float time = llGetAndResetTime();
        llSay(0, (string)time + " seconds have elapsed since the last touch or boot-up.");


Script time is the amount of real-world time that the script has been in a running state. It is unaffected by time dilation, but it does not count time while the script is suspended, the user is offline (when in an attachment), the object is in inventory rather than rezzed, etc.

See Also


•  llResetTime
•  llGetTime
•  llGetRegionTimeDilation

Deep Notes

All Issues

~ Search JIRA for related Issues
   llGetTime doesn't reset on admin requested sim restart


function float llGetAndResetTime();
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.