<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24ticks</id>
	<title>$ticks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24ticks"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$ticks&amp;action=history"/>
	<updated>2026-05-14T22:48:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$ticks&amp;diff=4390&amp;oldid=prev</id>
		<title>Doomie at 19:56, 26 November 2005</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$ticks&amp;diff=4390&amp;oldid=prev"/>
		<updated>2005-11-26T19:56:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns the number of ticks since your operating system was first started.&lt;br /&gt;
 $ticks&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039; that you can use this as milliseconds, as one tick is one millisecond. &lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 ; You can use $ticks to calculate the time a script did need.&lt;br /&gt;
 ; lets make a new alias called testtime&lt;br /&gt;
 [[alias]] testtime {&lt;br /&gt;
  ; at first, we need to save the current $ticks&lt;br /&gt;
  [[var]] %ticks = $ticks, %i = 1, %test&lt;br /&gt;
  ; lets &amp;quot;increase&amp;quot; %test 1000 times with the help of a while loop &lt;br /&gt;
  [[while]] (%i &amp;lt;= 1000) {&lt;br /&gt;
   %test = $calc(%test + 1)&lt;br /&gt;
   [[inc]] %i&lt;br /&gt;
  }&lt;br /&gt;
  ; now we can echo the time this script did need by calculating the current $ticks minus the one we have saved in %ticks. &lt;br /&gt;
  [[echo]] -a This took: $calc($ticks - %ticks) milliseconds.&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[[Category:Time and Date Identifiers]]&lt;/div&gt;</summary>
		<author><name>Doomie</name></author>
	</entry>
</feed>