<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlGetAndResetTime</id>
	<title>LlGetAndResetTime - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlGetAndResetTime"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetAndResetTime&amp;action=history"/>
	<updated>2026-10-25T11:12:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://wiki.osgrid.org/index.php?title=LlGetAndResetTime&amp;diff=120&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;== Function: float llGetAndResetTime( );== Returns a float that is script time in seconds and then resets the script time to zero. &lt;br&gt;&lt;br&gt; &#039;&#039;&#039;Specification&#039;&#039;&#039; &lt;br&gt; Script tim...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetAndResetTime&amp;diff=120&amp;oldid=prev"/>
		<updated>2017-12-31T22:03:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Function: float llGetAndResetTime( );== Returns a float that is script time in seconds and then resets the script time to zero. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &amp;#039;&amp;#039;&amp;#039;Specification&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt; Script tim...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Function: float llGetAndResetTime( );==&lt;br /&gt;
Returns a float that is script time in seconds and then resets the script time to zero. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Specification&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
Script time differs from normal time, it is affected by time dilation. See [[llGetRegionTimeDilation]] for details. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Caveats&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
• Script time resets when... &amp;lt;br&amp;gt;&lt;br /&gt;
-• Script reset (user or [[llResetScript]] or [[llResetOtherScript]]) &amp;lt;br&amp;gt;&lt;br /&gt;
-• Simulator reset (admin or crash) &amp;lt;br&amp;gt;&lt;br /&gt;
-• Call to either [[llResetTime]] or [[llGetAndResetTime]]  &amp;lt;br&amp;gt;&lt;br /&gt;
• Script time doesn&amp;#039;t measure real world time, it is affected by time dilation.  &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
default {&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        llResetTime();&lt;br /&gt;
    }&lt;br /&gt;
    touch_start(integer num_touch)&lt;br /&gt;
    {&lt;br /&gt;
        float time = llGetAndResetTime(); //This is equivalent to calling llGetTime(), then llResetTime()     &lt;br /&gt;
        llSay(0,(string)time + &amp;quot; seconds have elapsed since the last touch.&amp;quot; );&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Notes&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
Script time does not measure time dilation. To measure elapsed calendar time, call [[llGetTimestamp]] instead, since time dilation and resets often make dilated time intervals differ from calendar time intervals. &amp;lt;br&amp;gt;&lt;br /&gt;
See Also &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Functions&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llResetTime]]  &amp;lt;br&amp;gt;			&lt;br /&gt;
•  	[[llGetTime]] 			 &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llGetRegionTimeDilation]] 	 &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>