Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 356 | chris | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | <!--NewPage--> |
||
| 3 | <HTML> |
||
| 4 | <HEAD> |
||
| 5 | <!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:08 CET 2013 --> |
||
| 6 | <TITLE> |
||
| 7 | TimeUtils (libgdx API) |
||
| 8 | </TITLE> |
||
| 9 | |||
| 10 | <META NAME="date" CONTENT="2013-01-27"> |
||
| 11 | |||
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
||
| 13 | |||
| 14 | <SCRIPT type="text/javascript"> |
||
| 15 | function windowTitle() |
||
| 16 | { |
||
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
||
| 18 | parent.document.title="TimeUtils (libgdx API)"; |
||
| 19 | } |
||
| 20 | } |
||
| 21 | </SCRIPT> |
||
| 22 | <NOSCRIPT> |
||
| 23 | </NOSCRIPT> |
||
| 24 | |||
| 25 | </HEAD> |
||
| 26 | |||
| 27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
||
| 28 | <HR> |
||
| 29 | |||
| 30 | |||
| 31 | <!-- ========= START OF TOP NAVBAR ======= --> |
||
| 32 | <A NAME="navbar_top"><!-- --></A> |
||
| 33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
||
| 34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 35 | <TR> |
||
| 36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
||
| 38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 39 | <TR ALIGN="center" VALIGN="top"> |
||
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TimeUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 48 | </TR> |
||
| 49 | </TABLE> |
||
| 50 | </TD> |
||
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 52 | |||
| 53 | libgdx API |
||
| 54 | <style> |
||
| 55 | body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt } |
||
| 56 | pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif } |
||
| 57 | h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold } |
||
| 58 | .TableHeadingColor { background:#EEEEFF; } |
||
| 59 | a { text-decoration:none } |
||
| 60 | a:hover { text-decoration:underline } |
||
| 61 | a:link, a:visited { color:blue } |
||
| 62 | table { border:0px } |
||
| 63 | .TableRowColor td:first-child { border-left:1px solid black } |
||
| 64 | .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black } |
||
| 65 | hr { border:0px; border-bottom:1px solid #333366; } |
||
| 66 | </style> |
||
| 67 | </EM> |
||
| 68 | </TD> |
||
| 69 | </TR> |
||
| 70 | |||
| 71 | <TR> |
||
| 72 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 73 | <A HREF="../../../../com/badlogic/gdx/utils/Timer.Task.html" title="class in com.badlogic.gdx.utils"><B>PREV CLASS</B></A> |
||
| 74 | <A HREF="../../../../com/badlogic/gdx/utils/XmlReader.html" title="class in com.badlogic.gdx.utils"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 75 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 76 | <A HREF="../../../../index.html?com/badlogic/gdx/utils/TimeUtils.html" target="_top"><B>FRAMES</B></A> |
||
| 77 | <A HREF="TimeUtils.html" target="_top"><B>NO FRAMES</B></A> |
||
| 78 | <SCRIPT type="text/javascript"> |
||
| 79 | <!-- |
||
| 80 | if(window==top) { |
||
| 81 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 82 | } |
||
| 83 | //--> |
||
| 84 | </SCRIPT> |
||
| 85 | <NOSCRIPT> |
||
| 86 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 87 | </NOSCRIPT> |
||
| 88 | |||
| 89 | |||
| 90 | </FONT></TD> |
||
| 91 | </TR> |
||
| 92 | <TR> |
||
| 93 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 94 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 95 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 96 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
| 97 | </TR> |
||
| 98 | </TABLE> |
||
| 99 | <A NAME="skip-navbar_top"></A> |
||
| 100 | <!-- ========= END OF TOP NAVBAR ========= --> |
||
| 101 | |||
| 102 | <HR> |
||
| 103 | <!-- ======== START OF CLASS DATA ======== --> |
||
| 104 | <H2> |
||
| 105 | <FONT SIZE="-1"> |
||
| 106 | com.badlogic.gdx.utils</FONT> |
||
| 107 | <BR> |
||
| 108 | Class TimeUtils</H2> |
||
| 109 | <PRE> |
||
| 110 | java.lang.Object |
||
| 111 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.utils.TimeUtils</B> |
||
| 112 | </PRE> |
||
| 113 | <HR> |
||
| 114 | <DL> |
||
| 115 | <DT><PRE>public class <B>TimeUtils</B><DT>extends java.lang.Object</DL> |
||
| 116 | </PRE> |
||
| 117 | |||
| 118 | <P> |
||
| 119 | Wrapper around System.nanoTime() and System.currentTimeMillis(). Use this if you want to be compatible across all platforms! |
||
| 120 | <P> |
||
| 121 | |||
| 122 | <P> |
||
| 123 | <DL> |
||
| 124 | <DT><B>Author:</B></DT> |
||
| 125 | <DD>mzechner</DD> |
||
| 126 | </DL> |
||
| 127 | <HR> |
||
| 128 | |||
| 129 | <P> |
||
| 130 | |||
| 131 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
||
| 132 | |||
| 133 | <A NAME="constructor_summary"><!-- --></A> |
||
| 134 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 135 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 136 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 137 | <B>Constructor Summary</B></FONT></TH> |
||
| 138 | </TR> |
||
| 139 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 140 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/TimeUtils.html#TimeUtils()">TimeUtils</A></B>()</CODE> |
||
| 141 | |||
| 142 | <BR> |
||
| 143 | </TD> |
||
| 144 | </TR> |
||
| 145 | </TABLE> |
||
| 146 | |
||
| 147 | <!-- ========== METHOD SUMMARY =========== --> |
||
| 148 | |||
| 149 | <A NAME="method_summary"><!-- --></A> |
||
| 150 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 151 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 152 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 153 | <B>Method Summary</B></FONT></TH> |
||
| 154 | </TR> |
||
| 155 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 156 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 157 | <CODE>static long</CODE></FONT></TD> |
||
| 158 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/TimeUtils.html#millis()">millis</A></B>()</CODE> |
||
| 159 | |||
| 160 | <BR> |
||
| 161 | </TD> |
||
| 162 | </TR> |
||
| 163 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 164 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 165 | <CODE>static long</CODE></FONT></TD> |
||
| 166 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/TimeUtils.html#nanoTime()">nanoTime</A></B>()</CODE> |
||
| 167 | |||
| 168 | <BR> |
||
| 169 | </TD> |
||
| 170 | </TR> |
||
| 171 | </TABLE> |
||
| 172 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
||
| 173 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 174 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
| 175 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
||
| 176 | </TR> |
||
| 177 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 178 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
||
| 179 | </TR> |
||
| 180 | </TABLE> |
||
| 181 | |
||
| 182 | <P> |
||
| 183 | |||
| 184 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
||
| 185 | |||
| 186 | <A NAME="constructor_detail"><!-- --></A> |
||
| 187 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 188 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 189 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 190 | <B>Constructor Detail</B></FONT></TH> |
||
| 191 | </TR> |
||
| 192 | </TABLE> |
||
| 193 | |||
| 194 | <A NAME="TimeUtils()"><!-- --></A><H3> |
||
| 195 | TimeUtils</H3> |
||
| 196 | <PRE> |
||
| 197 | public <B>TimeUtils</B>()</PRE> |
||
| 198 | <DL> |
||
| 199 | </DL> |
||
| 200 | |||
| 201 | <!-- ============ METHOD DETAIL ========== --> |
||
| 202 | |||
| 203 | <A NAME="method_detail"><!-- --></A> |
||
| 204 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 205 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 206 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 207 | <B>Method Detail</B></FONT></TH> |
||
| 208 | </TR> |
||
| 209 | </TABLE> |
||
| 210 | |||
| 211 | <A NAME="nanoTime()"><!-- --></A><H3> |
||
| 212 | nanoTime</H3> |
||
| 213 | <PRE> |
||
| 214 | public static long <B>nanoTime</B>()</PRE> |
||
| 215 | <DL> |
||
| 216 | <DD><DL> |
||
| 217 | |||
| 218 | <DT><B>Returns:</B><DD>The current value of the system timer, in nanoseconds.</DL> |
||
| 219 | </DD> |
||
| 220 | </DL> |
||
| 221 | <HR> |
||
| 222 | |||
| 223 | <A NAME="millis()"><!-- --></A><H3> |
||
| 224 | millis</H3> |
||
| 225 | <PRE> |
||
| 226 | public static long <B>millis</B>()</PRE> |
||
| 227 | <DL> |
||
| 228 | <DD><DL> |
||
| 229 | |||
| 230 | <DT><B>Returns:</B><DD>the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.</DL> |
||
| 231 | </DD> |
||
| 232 | </DL> |
||
| 233 | <!-- ========= END OF CLASS DATA ========= --> |
||
| 234 | <HR> |
||
| 235 | |||
| 236 | |||
| 237 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
||
| 238 | <A NAME="navbar_bottom"><!-- --></A> |
||
| 239 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
||
| 240 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 241 | <TR> |
||
| 242 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 243 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
||
| 244 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 245 | <TR ALIGN="center" VALIGN="top"> |
||
| 246 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 247 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 248 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 249 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TimeUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 250 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 251 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 252 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 253 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 254 | </TR> |
||
| 255 | </TABLE> |
||
| 256 | </TD> |
||
| 257 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 258 | libgdx API</EM> |
||
| 259 | </TD> |
||
| 260 | </TR> |
||
| 261 | |||
| 262 | <TR> |
||
| 263 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 264 | <A HREF="../../../../com/badlogic/gdx/utils/Timer.Task.html" title="class in com.badlogic.gdx.utils"><B>PREV CLASS</B></A> |
||
| 265 | <A HREF="../../../../com/badlogic/gdx/utils/XmlReader.html" title="class in com.badlogic.gdx.utils"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 266 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 267 | <A HREF="../../../../index.html?com/badlogic/gdx/utils/TimeUtils.html" target="_top"><B>FRAMES</B></A> |
||
| 268 | <A HREF="TimeUtils.html" target="_top"><B>NO FRAMES</B></A> |
||
| 269 | <SCRIPT type="text/javascript"> |
||
| 270 | <!-- |
||
| 271 | if(window==top) { |
||
| 272 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 273 | } |
||
| 274 | //--> |
||
| 275 | </SCRIPT> |
||
| 276 | <NOSCRIPT> |
||
| 277 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 278 | </NOSCRIPT> |
||
| 279 | |||
| 280 | |||
| 281 | </FONT></TD> |
||
| 282 | </TR> |
||
| 283 | <TR> |
||
| 284 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 285 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 286 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 287 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
| 288 | </TR> |
||
| 289 | </TABLE> |
||
| 290 | <A NAME="skip-navbar_bottom"></A> |
||
| 291 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
||
| 292 | |||
| 293 | <HR> |
||
| 294 | |||
| 295 | <div style="font-size:9pt"><i> |
||
| 296 | Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com) |
||
| 297 | </i></div> |
||
| 298 | |||
| 299 | </BODY> |
||
| 300 | </HTML> |