wut/time_8h.html
2018-07-26 20:52:03 +10:00

144 lines
14 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wut: include/coreinit/time.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">wut
&#160;<span id="projectnumber">1.0.0-alpha</span>
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5050f3de292bd66075be80c4b119f1df.html">coreinit</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">time.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="wut_8h_source.html">wut.h</a>&gt;</code><br />
<code>#include &quot;<a class="el" href="systeminfo_8h_source.html">systeminfo.h</a>&quot;</code><br />
</div>
<p><a href="time_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structOSCalendarTime"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#structOSCalendarTime">OSCalendarTime</a></td></tr>
<tr class="memdesc:structOSCalendarTime"><td class="mdescLeft">&#160;</td><td class="mdescRight">Same as std c struct tm but with msec and usec added. <a href="group__coreinit__time.html#structOSCalendarTime">More...</a><br /></td></tr>
<tr class="separator:structOSCalendarTime"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gaafdcfae39fd2307afcd1f1ff990d107e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#gaafdcfae39fd2307afcd1f1ff990d107e">OSTimerClockSpeed</a>&#160;&#160;&#160;((<a class="el" href="group__coreinit__systeminfo.html#ga8fec93a3dcbb7b1665e081af10783968">OSGetSystemInfo</a>()-&gt;busClockSpeed) / 4)</td></tr>
<tr class="separator:gaafdcfae39fd2307afcd1f1ff990d107e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga56f8387dc414ae566fe81fe6197af191"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#ga56f8387dc414ae566fe81fe6197af191">OSSecondsToTicks</a>(val)&#160;&#160;&#160;((uint64_t)(val) * (uint64_t)<a class="el" href="group__coreinit__time.html#gaafdcfae39fd2307afcd1f1ff990d107e">OSTimerClockSpeed</a>)</td></tr>
<tr class="separator:ga56f8387dc414ae566fe81fe6197af191"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3af64061ec6671a5297a1a049d21b95d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#ga3af64061ec6671a5297a1a049d21b95d">OSMillisecondsToTicks</a>(val)&#160;&#160;&#160;(((uint64_t)(val) * (uint64_t)<a class="el" href="group__coreinit__time.html#gaafdcfae39fd2307afcd1f1ff990d107e">OSTimerClockSpeed</a>) / 1000ull)</td></tr>
<tr class="separator:ga3af64061ec6671a5297a1a049d21b95d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga584e92fd516b71c29eced7027deae2bc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#ga584e92fd516b71c29eced7027deae2bc">OSMicrosecondsToTicks</a>(val)&#160;&#160;&#160;(((uint64_t)(val) * (uint64_t)<a class="el" href="group__coreinit__time.html#gaafdcfae39fd2307afcd1f1ff990d107e">OSTimerClockSpeed</a>) / 1000000ull)</td></tr>
<tr class="separator:ga584e92fd516b71c29eced7027deae2bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf3a338c4d432612d3989e66a2467786a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#gaf3a338c4d432612d3989e66a2467786a">OSNanosecondsToTicks</a>(val)&#160;&#160;&#160;(((uint64_t)(val) * ((uint64_t)<a class="el" href="group__coreinit__time.html#gaafdcfae39fd2307afcd1f1ff990d107e">OSTimerClockSpeed</a>) / 31250ull) / 32000ull)</td></tr>
<tr class="separator:gaf3a338c4d432612d3989e66a2467786a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2941294bae034893f2dc7fdaf58afc42"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#ga2941294bae034893f2dc7fdaf58afc42">OSTicksToSeconds</a>(val)&#160;&#160;&#160;((uint64_t)(val) / (uint64_t)<a class="el" href="group__coreinit__time.html#gaafdcfae39fd2307afcd1f1ff990d107e">OSTimerClockSpeed</a>)</td></tr>
<tr class="separator:ga2941294bae034893f2dc7fdaf58afc42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae514d4f6a8f6d4d38ef172c3923fca83"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#gae514d4f6a8f6d4d38ef172c3923fca83">OSTicksToMilliseconds</a>(val)&#160;&#160;&#160;(((uint64_t)(val) * 1000ull) / (uint64_t)OSTimerClockSpeed)</td></tr>
<tr class="separator:gae514d4f6a8f6d4d38ef172c3923fca83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0953882bda32934e674efcfa12ed0041"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#ga0953882bda32934e674efcfa12ed0041">OSTicksToMicroseconds</a>(val)&#160;&#160;&#160;(((uint64_t)(val) * 1000000ull) / (uint64_t)OSTimerClockSpeed)</td></tr>
<tr class="separator:ga0953882bda32934e674efcfa12ed0041"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac830b302adc1dc65e80b400336a3273c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#gac830b302adc1dc65e80b400336a3273c">OSTicksToNanoseconds</a>(val)&#160;&#160;&#160;(((uint64_t)(val) * 32000ull) / ((uint64_t)OSTimerClockSpeed / 31250ull))</td></tr>
<tr class="separator:gac830b302adc1dc65e80b400336a3273c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga3d2dd4b82471f30d5bb6cd07898815d7"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__coreinit__time.html#structOSCalendarTime">OSCalendarTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#ga3d2dd4b82471f30d5bb6cd07898815d7">OSCalendarTime</a></td></tr>
<tr class="separator:ga3d2dd4b82471f30d5bb6cd07898815d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8a345701176e997d5befdad507ce56c4"><td class="memItemLeft" align="right" valign="top">typedef int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#ga8a345701176e997d5befdad507ce56c4">OSTick</a></td></tr>
<tr class="separator:ga8a345701176e997d5befdad507ce56c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4d4f771188f6c29e758ed6b3b8347b4d"><td class="memItemLeft" align="right" valign="top">typedef int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d">OSTime</a></td></tr>
<tr class="separator:ga4d4f771188f6c29e758ed6b3b8347b4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gab2a332ddda0097ef61cfcf7cd4a39a07"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d">OSTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#gab2a332ddda0097ef61cfcf7cd4a39a07">OSGetTime</a> ()</td></tr>
<tr class="separator:gab2a332ddda0097ef61cfcf7cd4a39a07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8f77110c37a2dacc5c90cdbe06263e94"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d">OSTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#ga8f77110c37a2dacc5c90cdbe06263e94">OSGetSystemTime</a> ()</td></tr>
<tr class="separator:ga8f77110c37a2dacc5c90cdbe06263e94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae87316411264b3c9236913dabb9a6fa2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__time.html#ga8a345701176e997d5befdad507ce56c4">OSTick</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#gae87316411264b3c9236913dabb9a6fa2">OSGetTick</a> ()</td></tr>
<tr class="separator:gae87316411264b3c9236913dabb9a6fa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga048f5f8132b8788b45d36d0571ca06dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__time.html#ga8a345701176e997d5befdad507ce56c4">OSTick</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#ga048f5f8132b8788b45d36d0571ca06dc">OSGetSystemTick</a> ()</td></tr>
<tr class="separator:ga048f5f8132b8788b45d36d0571ca06dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3a8aedfc2dfd1e33ba3b19979fd9cbd3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d">OSTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#ga3a8aedfc2dfd1e33ba3b19979fd9cbd3">OSCalendarTimeToTicks</a> (<a class="el" href="group__coreinit__time.html#structOSCalendarTime">OSCalendarTime</a> *calendarTime)</td></tr>
<tr class="separator:ga3a8aedfc2dfd1e33ba3b19979fd9cbd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa34d1e7bf191ae1920ae4a7487b596b7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreinit__time.html#gaa34d1e7bf191ae1920ae4a7487b596b7">OSTicksToCalendarTime</a> (<a class="el" href="group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d">OSTime</a> time, <a class="el" href="group__coreinit__time.html#structOSCalendarTime">OSCalendarTime</a> *calendarTime)</td></tr>
<tr class="separator:gaa34d1e7bf191ae1920ae4a7487b596b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>