<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://wiki.torque-bhp.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Class%3ATime</id>
	<title>Class:Time - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.torque-bhp.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Class%3ATime"/>
	<link rel="alternate" type="text/html" href="http://wiki.torque-bhp.com/mediawiki/index.php?title=Class:Time&amp;action=history"/>
	<updated>2026-05-30T23:21:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.7</generator>
	<entry>
		<id>http://wiki.torque-bhp.com/mediawiki/index.php?title=Class:Time&amp;diff=521&amp;oldid=prev</id>
		<title>Ihawkins: Created page with &quot;== Time ==  Utility methods for dealing with time, sleeping, etc.  === Methods === &lt;syntaxhighlight lang=&quot;Java&quot;&gt;       /**      * Sleep for X milliseconds, for use in the main...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.torque-bhp.com/mediawiki/index.php?title=Class:Time&amp;diff=521&amp;oldid=prev"/>
		<updated>2022-01-18T14:11:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Time ==  Utility methods for dealing with time, sleeping, etc.  === Methods === &amp;lt;syntaxhighlight lang=&amp;quot;Java&amp;quot;&amp;gt;       /**      * Sleep for X milliseconds, for use in the main...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Time ==&lt;br /&gt;
&lt;br /&gt;
Utility methods for dealing with time, sleeping, etc.&lt;br /&gt;
&lt;br /&gt;
=== Methods ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Sleep for X milliseconds, for use in the main function only&lt;br /&gt;
     * @param timeInMillis How long to sleep for in milliseconds (approximate)&lt;br /&gt;
     */&lt;br /&gt;
    public static final void sleep(long timeInMillis);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Returns the current time of the system in millis. Be aware that this can jump depending on external&lt;br /&gt;
     * time synchronization sources, so should not be used in control/loop logic.&lt;br /&gt;
     * @return&lt;br /&gt;
     */&lt;br /&gt;
    public static final long currentTimeMillis();&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Gets the elapsed time from boot, including any time passing whilst the device is sleeping&lt;br /&gt;
     *&lt;br /&gt;
     * This is the preferred timesource for using in any loops as currentTimeMillis can jump backwards and forwards&lt;br /&gt;
     * depending on the system clock being updated/resynchronized automatically by ntp(hourly!), or by the user manually.&lt;br /&gt;
     *&lt;br /&gt;
     * @return the time elapsed from boot&lt;br /&gt;
     */&lt;br /&gt;
    public static final long elapsedRealtime();&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ihawkins</name></author>
		
	</entry>
</feed>