<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.deltaworlds.com/index.php?action=history&amp;feed=atom&amp;title=Aw_tick</id>
	<title>Aw tick - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.deltaworlds.com/index.php?action=history&amp;feed=atom&amp;title=Aw_tick"/>
	<link rel="alternate" type="text/html" href="https://wiki.deltaworlds.com/index.php?title=Aw_tick&amp;action=history"/>
	<updated>2026-04-17T02:00:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.deltaworlds.com/index.php?title=Aw_tick&amp;diff=199&amp;oldid=prev</id>
		<title>Xan: Created page with &quot;{{SDK added in|version=4.1|sdk=53|world=|universe=|browser=}}  __NOTOC__   unsigned int aw_tick (void)  ==Description== Returns the number of milliseconds that have elapsed since the SDK was initialized.  ==Callback== None (returns immediately)  ==Notes== This method provides a high precision reference time for time critical operations or application timers. The degree of precision depends largely on the operating system being used.  :{| border cellpadding=4 cellspacing=...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.deltaworlds.com/index.php?title=Aw_tick&amp;diff=199&amp;oldid=prev"/>
		<updated>2025-04-07T19:26:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{SDK added in|version=4.1|sdk=53|world=|universe=|browser=}}  __NOTOC__   unsigned int aw_tick (void)  ==Description== Returns the number of milliseconds that have elapsed since the SDK was initialized.  ==Callback== None (returns immediately)  ==Notes== This method provides a high precision reference time for time critical operations or application timers. The degree of precision depends largely on the operating system being used.  :{| border cellpadding=4 cellspacing=...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{SDK added in|version=4.1|sdk=53|world=|universe=|browser=}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
 unsigned int aw_tick (void)&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Returns the number of milliseconds that have elapsed since the SDK was initialized.&lt;br /&gt;
&lt;br /&gt;
==Callback==&lt;br /&gt;
None (returns immediately)&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
This method provides a high precision reference time for time critical operations or application timers. The degree of precision depends largely on the operating system being used.&lt;br /&gt;
&lt;br /&gt;
:{| border cellpadding=4 cellspacing=0&lt;br /&gt;
|- valign=bottom align=left&lt;br /&gt;
!Precision (1) !!Operating system&lt;br /&gt;
|-&lt;br /&gt;
| 1 ms || Linux variants&lt;br /&gt;
|-&lt;br /&gt;
| 1 ms || Windows Vista&lt;br /&gt;
|-&lt;br /&gt;
| ~10 ms || Windows 2000, Windows XP and Windows 2003&lt;br /&gt;
|-&lt;br /&gt;
| ~15 ms || Windows NT 3.1&lt;br /&gt;
|-&lt;br /&gt;
| ~50 ms || Windows 95, Windows 98 and Windows ME&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;(1)&amp;#039;&amp;#039;&amp;#039; Precision is defined as the smallest difference between tick counts from successive calls to this method.&lt;br /&gt;
&lt;br /&gt;
The return value is always equal to or larger than one from a previous call, with one exception. As it is only a 32-bit number it will wrap around to zero after 49.7 days (or 0xFFFFFFFF milliseconds). This has the potential to cause problems in bots that run for extended periods.&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
==Argument attributes==&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
==Return values==&lt;br /&gt;
Number of milliseconds that have elapsed since [[aw_init]] or [[aw_init_bind]] was called.&lt;br /&gt;
&lt;br /&gt;
==Returned attributes==&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
 while (1)&lt;br /&gt;
 {&lt;br /&gt;
   [[aw_wait]] (1);&lt;br /&gt;
   /*&lt;br /&gt;
     The tick count is likely to go past 1000000 without assuming that exact value.&lt;br /&gt;
     It is not possible to use the == operator to test for a particular tick count.&lt;br /&gt;
   */&lt;br /&gt;
   if ([[aw_tick]] () &amp;gt;= 1000000) &lt;br /&gt;
   {&lt;br /&gt;
     puts (&amp;quot;One million milliseconds have elapsed since the SDK was initialized!&amp;quot;);&lt;br /&gt;
     break;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Mover Control example code]]&lt;br /&gt;
*[[aw_init]]&lt;br /&gt;
*[[aw_init_bind]]&lt;br /&gt;
&lt;br /&gt;
[[Category: SDK Methods|T]]&lt;/div&gt;</summary>
		<author><name>Xan</name></author>
	</entry>
</feed>