2016-01-07 16:06:06 +00:00
<!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.10" / >
< title > WUT: D:/Programming/Projects/wut/include/coreinit/time.h Source File< / 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 >
< script type = "text/javascript" >
$(document).ready(function() { init_search(); });
< / 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
  < span id = "projectnumber" > 0.1< / span >
< / div >
< div id = "projectbrief" > Wii U Toolchain< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "modules.html" > < span > Modules< / span > < / a > < / li >
< li > < a href = "annotated.html" > < span > Data  Structures< / span > < / a > < / li >
< li class = "current" > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< li >
< div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< img id = "MSearchSelect" src = "search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "search/close.png" alt = "" / > < / a >
< / span >
< / div >
< / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "files.html" > < span > File  List< / span > < / a > < / li >
< li > < a href = "globals.html" > < span > Globals< / span > < / a > < / li >
< / ul >
< / 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 = "headertitle" >
< div class = "title" > time.h< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< a href = "time_8h.html" > Go to the documentation of this file.< / a > < div class = "fragment" > < div class = "line" > < a name = "l00001" > < / a > < span class = "lineno" > 1< / span >   < span class = "preprocessor" > #pragma once< / span > < / div >
< div class = "line" > < a name = "l00002" > < / a > < span class = "lineno" > 2< / span >   < span class = "preprocessor" > #include < < a class = "code" href = "wut_8h.html" > wut.h< / a > > < / span > < / div >
< div class = "line" > < a name = "l00003" > < / a > < span class = "lineno" > 3< / span >   < / div >
< div class = "line" > < a name = "l00010" > < / a > < span class = "lineno" > 10< / span >   < span class = "preprocessor" > #ifdef __cplusplus< / span > < / div >
< div class = "line" > < a name = "l00011" > < / a > < span class = "lineno" > 11< / span >   < span class = "keyword" > extern< / span > < span class = "stringliteral" > " C" < / span > {< / div >
< div class = "line" > < a name = "l00012" > < / a > < span class = "lineno" > 12< / span >   < span class = "preprocessor" > #endif< / span > < / div >
< div class = "line" > < a name = "l00013" > < / a > < span class = "lineno" > 13< / span >   < / div >
< div class = "line" > < a name = "l00014" > < / a > < span class = "lineno" > < a class = "line" href = "group__coreinit__time.html#ga3d2dd4b82471f30d5bb6cd07898815d7" > 14< / a > < / span >   < span class = "keyword" > typedef< / span > < span class = "keyword" > struct < / span > < a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > < a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > ;< / div >
< div class = "line" > < a name = "l00015" > < / a > < span class = "lineno" > 15< / span >   < / div >
< div class = "line" > < a name = "l00016" > < / a > < span class = "lineno" > < a class = "line" href = "group__coreinit__time.html#ga8a345701176e997d5befdad507ce56c4" > 16< / a > < / span >   < span class = "keyword" > typedef< / span > int32_t < a class = "code" href = "group__coreinit__time.html#ga8a345701176e997d5befdad507ce56c4" > OSTick< / a > ;< / div >
< div class = "line" > < a name = "l00017" > < / a > < span class = "lineno" > < a class = "line" href = "group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d" > 17< / a > < / span >   < span class = "keyword" > typedef< / span > int64_t < a class = "code" href = "group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d" > OSTime< / a > ;< / div >
< div class = "line" > < a name = "l00018" > < / a > < span class = "lineno" > 18< / span >   < / div >
< div class = "line" > < a name = "l00019" > < / a > < span class = "lineno" > < a class = "line" href = "struct_o_s_calendar_time.html" > 19< / a > < / span >   < span class = "keyword" > struct < / span > < a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > < / div >
< div class = "line" > < a name = "l00020" > < / a > < span class = "lineno" > 20< / span >   {< / div >
< div class = "line" > < a name = "l00021" > < / a > < span class = "lineno" > < a class = "line" href = "struct_o_s_calendar_time.html#a1cad71d6a0320cda1e9c2972e5ed69a0" > 21< / a > < / span >   int32_t < a class = "code" href = "struct_o_s_calendar_time.html#a1cad71d6a0320cda1e9c2972e5ed69a0" > tm_sec< / a > ;< / div >
< div class = "line" > < a name = "l00022" > < / a > < span class = "lineno" > < a class = "line" href = "struct_o_s_calendar_time.html#af222f03106a223340f607d0922296595" > 22< / a > < / span >   int32_t < a class = "code" href = "struct_o_s_calendar_time.html#af222f03106a223340f607d0922296595" > tm_min< / a > ;< / div >
< div class = "line" > < a name = "l00023" > < / a > < span class = "lineno" > < a class = "line" href = "struct_o_s_calendar_time.html#a0e9413b6e329683e8bd22c1b4f4fa527" > 23< / a > < / span >   int32_t < a class = "code" href = "struct_o_s_calendar_time.html#a0e9413b6e329683e8bd22c1b4f4fa527" > tm_hour< / a > ;< / div >
< div class = "line" > < a name = "l00024" > < / a > < span class = "lineno" > < a class = "line" href = "struct_o_s_calendar_time.html#a43b11a5401efa13b38fb2704bc6cc276" > 24< / a > < / span >   int32_t < a class = "code" href = "struct_o_s_calendar_time.html#a43b11a5401efa13b38fb2704bc6cc276" > tm_mday< / a > ;< / div >
< div class = "line" > < a name = "l00025" > < / a > < span class = "lineno" > < a class = "line" href = "struct_o_s_calendar_time.html#a4f67b4180a8ce88a4aed0270cb9f9bbf" > 25< / a > < / span >   int32_t < a class = "code" href = "struct_o_s_calendar_time.html#a4f67b4180a8ce88a4aed0270cb9f9bbf" > tm_mon< / a > ;< / div >
< div class = "line" > < a name = "l00026" > < / a > < span class = "lineno" > < a class = "line" href = "struct_o_s_calendar_time.html#aaca5843de3a0cc8c6d665f48807adaf3" > 26< / a > < / span >   int32_t < a class = "code" href = "struct_o_s_calendar_time.html#aaca5843de3a0cc8c6d665f48807adaf3" > tm_year< / a > ;< / div >
< div class = "line" > < a name = "l00027" > < / a > < span class = "lineno" > 27< / span >   };< / div >
< div class = "line" > < a name = "l00028" > < / a > < span class = "lineno" > 28< / span >   CHECK_OFFSET(< a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > , 0x00, tm_sec);< / div >
< div class = "line" > < a name = "l00029" > < / a > < span class = "lineno" > 29< / span >   CHECK_OFFSET(< a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > , 0x04, tm_min);< / div >
< div class = "line" > < a name = "l00030" > < / a > < span class = "lineno" > 30< / span >   CHECK_OFFSET(< a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > , 0x08, tm_hour);< / div >
< div class = "line" > < a name = "l00031" > < / a > < span class = "lineno" > 31< / span >   CHECK_OFFSET(< a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > , 0x0C, tm_mday);< / div >
< div class = "line" > < a name = "l00032" > < / a > < span class = "lineno" > 32< / span >   CHECK_OFFSET(< a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > , 0x10, tm_mon);< / div >
< div class = "line" > < a name = "l00033" > < / a > < span class = "lineno" > 33< / span >   CHECK_OFFSET(< a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > , 0x14, tm_year);< / div >
< div class = "line" > < a name = "l00034" > < / a > < span class = "lineno" > 34< / span >   CHECK_SIZE(< a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > , 0x18);< / div >
< div class = "line" > < a name = "l00035" > < / a > < span class = "lineno" > 35< / span >   < / div >
2016-10-09 21:18:25 +01:00
< div class = "line" > < a name = "l00036" > < / a > < span class = "lineno" > < a class = "line" href = "group__coreinit__time.html#ga84fa592d7f5ab071ead33ad2414ae464" > 36< / a > < / span >   < span class = "preprocessor" > #define OSOneSecond ((OSGetSystemInfo()-> clockSpeed) / 4)< / span > < / div >
< div class = "line" > < a name = "l00037" > < / a > < span class = "lineno" > < a class = "line" href = "group__coreinit__time.html#gaf060c5bf43bd3658e72668b4c4a8e951" > 37< / a > < / span >   < span class = "preprocessor" > #define OSMilliseconds(val) ((((uint64_t)(val)) * (uint64_t)(OSOneSecond)) / 1000ull)< / span > < / div >
< div class = "line" > < a name = "l00038" > < / a > < span class = "lineno" > < a class = "line" href = "group__coreinit__time.html#ga14c6a55c22b84a15c8fa52bb48c1ee19" > 38< / a > < / span >   < span class = "preprocessor" > #define OSMicroseconds(val) ((((uint64_t)(val)) * (uint64_t)(OSOneSecond)) / 1000000ull)< / span > < / div >
< div class = "line" > < a name = "l00039" > < / a > < span class = "lineno" > < a class = "line" href = "group__coreinit__time.html#ga63a22d0264fbf40e5fbfd58630efa5dd" > 39< / a > < / span >   < span class = "preprocessor" > #define OSNanoseconds(val) ((((uint64_t)(val)) * (uint64_t)(OSOneSecond)) / 1000000000ull)< / span > < / div >
< div class = "line" > < a name = "l00040" > < / a > < span class = "lineno" > 40< / span >   < / div >
< div class = "line" > < a name = "l00041" > < / a > < span class = "lineno" > 41< / span >   OSTime< / div >
< div class = "line" > < a name = "l00042" > < / a > < span class = "lineno" > 42< / span >   < a class = "code" href = "group__coreinit__time.html#gab2a332ddda0097ef61cfcf7cd4a39a07" > OSGetTime< / a > ();< / div >
< div class = "line" > < a name = "l00043" > < / a > < span class = "lineno" > 43< / span >   < / div >
< div class = "line" > < a name = "l00044" > < / a > < span class = "lineno" > 44< / span >   OSTime< / div >
< div class = "line" > < a name = "l00045" > < / a > < span class = "lineno" > 45< / span >   < a class = "code" href = "group__coreinit__time.html#ga8f77110c37a2dacc5c90cdbe06263e94" > OSGetSystemTime< / a > ();< / div >
< div class = "line" > < a name = "l00046" > < / a > < span class = "lineno" > 46< / span >   < / div >
< div class = "line" > < a name = "l00047" > < / a > < span class = "lineno" > 47< / span >   OSTick< / div >
< div class = "line" > < a name = "l00048" > < / a > < span class = "lineno" > 48< / span >   < a class = "code" href = "group__coreinit__time.html#gae87316411264b3c9236913dabb9a6fa2" > OSGetTick< / a > ();< / div >
< div class = "line" > < a name = "l00049" > < / a > < span class = "lineno" > 49< / span >   < / div >
< div class = "line" > < a name = "l00050" > < / a > < span class = "lineno" > 50< / span >   OSTick< / div >
< div class = "line" > < a name = "l00051" > < / a > < span class = "lineno" > 51< / span >   < a class = "code" href = "group__coreinit__time.html#ga048f5f8132b8788b45d36d0571ca06dc" > OSGetSystemTick< / a > ();< / div >
< div class = "line" > < a name = "l00052" > < / a > < span class = "lineno" > 52< / span >   < / div >
< div class = "line" > < a name = "l00053" > < / a > < span class = "lineno" > 53< / span >   OSTime< / div >
< div class = "line" > < a name = "l00054" > < / a > < span class = "lineno" > 54< / span >   < a class = "code" href = "group__coreinit__time.html#ga3a8aedfc2dfd1e33ba3b19979fd9cbd3" > OSCalendarTimeToTicks< / a > (< a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > *calendarTime);< / div >
< div class = "line" > < a name = "l00055" > < / a > < span class = "lineno" > 55< / span >   < / div >
< div class = "line" > < a name = "l00056" > < / a > < span class = "lineno" > 56< / span >   < span class = "keywordtype" > void< / span > < / div >
< div class = "line" > < a name = "l00057" > < / a > < span class = "lineno" > 57< / span >   < a class = "code" href = "group__coreinit__time.html#gaa34d1e7bf191ae1920ae4a7487b596b7" > OSTicksToCalendarTime< / a > (OSTime time,< / div >
< div class = "line" > < a name = "l00058" > < / a > < span class = "lineno" > 58< / span >   < a class = "code" href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > *calendarTime);< / div >
< div class = "line" > < a name = "l00059" > < / a > < span class = "lineno" > 59< / span >   < / div >
< div class = "line" > < a name = "l00060" > < / a > < span class = "lineno" > 60< / span >   < span class = "preprocessor" > #ifdef __cplusplus< / span > < / div >
< div class = "line" > < a name = "l00061" > < / a > < span class = "lineno" > 61< / span >   }< / div >
< div class = "line" > < a name = "l00062" > < / a > < span class = "lineno" > 62< / span >   < span class = "preprocessor" > #endif< / span > < / div >
< div class = "line" > < a name = "l00063" > < / a > < span class = "lineno" > 63< / span >   < / div >
2016-01-07 16:06:06 +00:00
< div class = "ttc" id = "group__coreinit__time_html_gae87316411264b3c9236913dabb9a6fa2" > < div class = "ttname" > < a href = "group__coreinit__time.html#gae87316411264b3c9236913dabb9a6fa2" > OSGetTick< / a > < / div > < div class = "ttdeci" > OSTick OSGetTick()< / div > < / div >
< div class = "ttc" id = "group__coreinit__time_html_ga4d4f771188f6c29e758ed6b3b8347b4d" > < div class = "ttname" > < a href = "group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d" > OSTime< / a > < / div > < div class = "ttdeci" > int64_t OSTime< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "time_8h_source.html#l00017" > time.h:17< / a > < / div > < / div >
< div class = "ttc" id = "struct_o_s_calendar_time_html_a1cad71d6a0320cda1e9c2972e5ed69a0" > < div class = "ttname" > < a href = "struct_o_s_calendar_time.html#a1cad71d6a0320cda1e9c2972e5ed69a0" > OSCalendarTime::tm_sec< / a > < / div > < div class = "ttdeci" > int32_t tm_sec< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "time_8h_source.html#l00021" > time.h:21< / a > < / div > < / div >
< div class = "ttc" id = "struct_o_s_calendar_time_html_a0e9413b6e329683e8bd22c1b4f4fa527" > < div class = "ttname" > < a href = "struct_o_s_calendar_time.html#a0e9413b6e329683e8bd22c1b4f4fa527" > OSCalendarTime::tm_hour< / a > < / div > < div class = "ttdeci" > int32_t tm_hour< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "time_8h_source.html#l00023" > time.h:23< / a > < / div > < / div >
< div class = "ttc" id = "group__coreinit__time_html_ga3a8aedfc2dfd1e33ba3b19979fd9cbd3" > < div class = "ttname" > < a href = "group__coreinit__time.html#ga3a8aedfc2dfd1e33ba3b19979fd9cbd3" > OSCalendarTimeToTicks< / a > < / div > < div class = "ttdeci" > OSTime OSCalendarTimeToTicks(OSCalendarTime *calendarTime)< / div > < / div >
< div class = "ttc" id = "struct_o_s_calendar_time_html_a43b11a5401efa13b38fb2704bc6cc276" > < div class = "ttname" > < a href = "struct_o_s_calendar_time.html#a43b11a5401efa13b38fb2704bc6cc276" > OSCalendarTime::tm_mday< / a > < / div > < div class = "ttdeci" > int32_t tm_mday< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "time_8h_source.html#l00024" > time.h:24< / a > < / div > < / div >
< div class = "ttc" id = "group__coreinit__time_html_gab2a332ddda0097ef61cfcf7cd4a39a07" > < div class = "ttname" > < a href = "group__coreinit__time.html#gab2a332ddda0097ef61cfcf7cd4a39a07" > OSGetTime< / a > < / div > < div class = "ttdeci" > OSTime OSGetTime()< / div > < / div >
< div class = "ttc" id = "group__coreinit__time_html_gaa34d1e7bf191ae1920ae4a7487b596b7" > < div class = "ttname" > < a href = "group__coreinit__time.html#gaa34d1e7bf191ae1920ae4a7487b596b7" > OSTicksToCalendarTime< / a > < / div > < div class = "ttdeci" > void OSTicksToCalendarTime(OSTime time, OSCalendarTime *calendarTime)< / div > < / div >
< div class = "ttc" id = "group__coreinit__time_html_ga048f5f8132b8788b45d36d0571ca06dc" > < div class = "ttname" > < a href = "group__coreinit__time.html#ga048f5f8132b8788b45d36d0571ca06dc" > OSGetSystemTick< / a > < / div > < div class = "ttdeci" > OSTick OSGetSystemTick()< / div > < / div >
< div class = "ttc" id = "wut_8h_html" > < div class = "ttname" > < a href = "wut_8h.html" > wut.h< / a > < / div > < / div >
< div class = "ttc" id = "struct_o_s_calendar_time_html_af222f03106a223340f607d0922296595" > < div class = "ttname" > < a href = "struct_o_s_calendar_time.html#af222f03106a223340f607d0922296595" > OSCalendarTime::tm_min< / a > < / div > < div class = "ttdeci" > int32_t tm_min< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "time_8h_source.html#l00022" > time.h:22< / a > < / div > < / div >
< div class = "ttc" id = "group__coreinit__time_html_ga8f77110c37a2dacc5c90cdbe06263e94" > < div class = "ttname" > < a href = "group__coreinit__time.html#ga8f77110c37a2dacc5c90cdbe06263e94" > OSGetSystemTime< / a > < / div > < div class = "ttdeci" > OSTime OSGetSystemTime()< / div > < / div >
< div class = "ttc" id = "struct_o_s_calendar_time_html" > < div class = "ttname" > < a href = "struct_o_s_calendar_time.html" > OSCalendarTime< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "time_8h_source.html#l00019" > time.h:19< / a > < / div > < / div >
< div class = "ttc" id = "group__coreinit__time_html_ga8a345701176e997d5befdad507ce56c4" > < div class = "ttname" > < a href = "group__coreinit__time.html#ga8a345701176e997d5befdad507ce56c4" > OSTick< / a > < / div > < div class = "ttdeci" > int32_t OSTick< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "time_8h_source.html#l00016" > time.h:16< / a > < / div > < / div >
< div class = "ttc" id = "struct_o_s_calendar_time_html_a4f67b4180a8ce88a4aed0270cb9f9bbf" > < div class = "ttname" > < a href = "struct_o_s_calendar_time.html#a4f67b4180a8ce88a4aed0270cb9f9bbf" > OSCalendarTime::tm_mon< / a > < / div > < div class = "ttdeci" > int32_t tm_mon< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "time_8h_source.html#l00025" > time.h:25< / a > < / div > < / div >
< div class = "ttc" id = "struct_o_s_calendar_time_html_aaca5843de3a0cc8c6d665f48807adaf3" > < div class = "ttname" > < a href = "struct_o_s_calendar_time.html#aaca5843de3a0cc8c6d665f48807adaf3" > OSCalendarTime::tm_year< / a > < / div > < div class = "ttdeci" > int32_t tm_year< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "time_8h_source.html#l00026" > time.h:26< / a > < / div > < / div >
< / div > <!-- fragment --> < / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
< / a > 1.8.10
< / small > < / address >
< / body >
< / html >