<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_time_now</id>
	<title>Truxton time now - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_time_now"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_time_now&amp;action=history"/>
	<updated>2026-09-09T14:26:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_time_now&amp;diff=8334&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This will give you the current time in a format required by the rest of the API.  =Syntax= &lt;source lang=&quot;C&quot;&gt; uint64_t truxton_time_now( void ); &lt;/source&gt;  =Return value= The c...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_time_now&amp;diff=8334&amp;oldid=prev"/>
		<updated>2024-04-13T20:57:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This will give you the current time in a format required by the rest of the API.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; uint64_t truxton_time_now( void ); &amp;lt;/source&amp;gt;  =Return value= The c...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This will give you the current time in a format required by the rest of the API.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
uint64_t truxton_time_now( void );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Return value=&lt;br /&gt;
The current time as [https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime FILETIME] ticks.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
void test_time( void )&lt;br /&gt;
{&lt;br /&gt;
   uint64_t ticks = truxton_time_now();&lt;br /&gt;
&lt;br /&gt;
   printf( &amp;quot;The time is now %&amp;quot; PRIu64 &amp;quot;\n&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;PRIu64&amp;lt;/code&amp;gt; in the sample code above is a standard way of [https://en.wikipedia.org/wiki/C_data_types#Printf_and_scanf_format_specifiers formatting] a 64-bit unsigned integer in C.&lt;br /&gt;
Over the years, different compilers on different operating systems used different format specifiers for things, these &amp;lt;code&amp;gt;PRI&amp;lt;/code&amp;gt; macros, along with some tricky string concatenation the compilers perform for you, allow you to maintain a single code base without a bunch of macro magic.&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>