287 lines
49 KiB
HTML
287 lines
49 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>SDL Utility: C:/Users/Robert/source/repos/SDLU/include/structures/Time.hpp 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="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.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">SDL Utility
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
|
/* @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&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>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('_time_8hpp_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- 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 class="header">
|
|
<div class="headertitle">
|
|
<div class="title">Time.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="_time_8hpp.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="comment">/*****************************************************************/</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <chrono></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"> 14</span> <span class="preprocessor">#include "<a class="code" href="_util_8hpp.html">Util.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <a class="code" href="_util_8hpp.html#ad0494d8896dbc587136819e261afdc91">SDLU_BEGIN</a></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  </div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="_time_8hpp.html#a43ef4129965cab7191b6f0cccc85172c"> 18</a></span> <span class="keyword">typedef</span> <a class="code" href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d">Int64</a> <a class="code" href="_time_8hpp.html#a43ef4129965cab7191b6f0cccc85172c">TimeRep</a>;</div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="_time_8hpp.html#a20dec395170af789ab53b192f4779e13"> 19</a></span> <span class="keyword">typedef</span> std::nano <a class="code" href="_time_8hpp.html#a20dec395170af789ab53b192f4779e13">TimePeriod</a>;</div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_time.html"> 24</a></span> <span class="keyword">class </span><a class="code" href="class_time.html">Time</a> {</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_time.html#a4245e409c7347d1d671858962c2ca3b5"> 29</a></span>  <a class="code" href="class_time.html#a4245e409c7347d1d671858962c2ca3b5">Time</a>();</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Rep = Int64, <span class="keyword">typename</span> Period = std::ratio<1>> </div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  Rep <a class="code" href="class_time.html#a390653f89d18d9755ef3d4d149600ece">AsValue</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="class_time.html#a2193058fee71c2d63de3c113d92a2de7"> 45</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_time.html#a2193058fee71c2d63de3c113d92a2de7">AsSeconds</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_time.html#a7c6ad1774af8c8f70bd7d0a4f1f2928d"> 50</a></span>  <a class="code" href="_util_8hpp.html#a20b0c262d9ef5d263888e463dfa99638">Int32</a> <a class="code" href="class_time.html#a7c6ad1774af8c8f70bd7d0a4f1f2928d">AsMilliseconds</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_time.html#a7cdacd27ba57fdc59daeca5e787ed433"> 55</a></span>  <a class="code" href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d">Int64</a> <a class="code" href="class_time.html#a7cdacd27ba57fdc59daeca5e787ed433">AsMicroseconds</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Rep = Int64, <span class="keyword">typename</span> Period = std::ratio<1>> </div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  std::chrono::duration<Rep, Period> <a class="code" href="class_time.html#ab1f48322b99266fea871d67a1fee90cd">AsChrono</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="class_time.html#a927a66f4a96151c1e241ba69755fa982"> 72</a></span>  std::chrono::seconds <a class="code" href="class_time.html#a927a66f4a96151c1e241ba69755fa982">AsChronoSeconds</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_time.html#a3c3dad1ce180f5759e1228713b2c30e6"> 77</a></span>  std::chrono::milliseconds <a class="code" href="class_time.html#a3c3dad1ce180f5759e1228713b2c30e6">AsChronoMilliseconds</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_time.html#a953a4bbac412bf3064879a495bf91a96"> 82</a></span>  std::chrono::microseconds <a class="code" href="class_time.html#a953a4bbac412bf3064879a495bf91a96">AsChronoMicroseconds</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Rep = Int64, <span class="keyword">typename</span> Period = std::ratio<1>> </div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">static</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a000b522aafdbb493acc70be9fe5abc4a">Create</a>(<span class="keyword">const</span> Rep& duration);</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Rep = Int64, <span class="keyword">typename</span> Period = std::ratio<1>> </div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keyword">static</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a000b522aafdbb493acc70be9fe5abc4a">Create</a>(<span class="keyword">const</span> std::chrono::duration<Rep, Period>& duration);</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  </div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">static</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a93c19710e3f655d6fd0053d156a953a2">Now</a>();</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="class_time.html#aaea901fceef777e45cb7b50099a8dd25"> 121</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#aaea901fceef777e45cb7b50099a8dd25">Seconds</a>(<span class="keywordtype">float</span> seconds);</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  </div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="class_time.html#a8d0e9f87d5b0fdd8d12b0cc35cfd4e56"> 130</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a8d0e9f87d5b0fdd8d12b0cc35cfd4e56">Milliseconds</a>(<a class="code" href="_util_8hpp.html#a20b0c262d9ef5d263888e463dfa99638">Int32</a> milliseconds);</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  </div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="class_time.html#ab2361ddfe30cda51480b066eac103fb4"> 139</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#ab2361ddfe30cda51480b066eac103fb4">Microseconds</a>(<a class="code" href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d">Int64</a> microseconds);</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  </div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="class_time.html#a90988eb9657b79c370253c0cc952386a"> 150</a></span>  <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="class_time.html#a90988eb9657b79c370253c0cc952386a">operator==</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  </div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="class_time.html#a07472e52ba2ce81714f231d23adf8547"> 160</a></span>  <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="class_time.html#a07472e52ba2ce81714f231d23adf8547">operator!=</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="class_time.html#ac32257e5c86d2e57b56b0915e1809ead"> 170</a></span>  <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="class_time.html#ac32257e5c86d2e57b56b0915e1809ead">operator<</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  </div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="class_time.html#afef5512f7171297e82db0046b7028562"> 180</a></span>  <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="class_time.html#afef5512f7171297e82db0046b7028562">operator></a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  </div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="class_time.html#afaa678c360a26ff8f65d6e1a8e22a2ba"> 190</a></span>  <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="class_time.html#afaa678c360a26ff8f65d6e1a8e22a2ba">operator<=</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  </div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="class_time.html#af7a34ee9cd59bb411822899ad5132814"> 200</a></span>  <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="class_time.html#af7a34ee9cd59bb411822899ad5132814">operator>=</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  </div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="class_time.html#ad79e35ba7b47ff8c6fa44a91ba7e1db3"> 210</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#ad79e35ba7b47ff8c6fa44a91ba7e1db3">operator-</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  </div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  </div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="class_time.html#a3220188faf2f26989df18166286bfe43"> 221</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a3220188faf2f26989df18166286bfe43">operator+</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  </div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="class_time.html#ac113395867bbeb311793564b53b992fa"> 231</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a>& <a class="code" href="class_time.html#ac113395867bbeb311793564b53b992fa">operator+=</a>(<a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  </div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  </div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="class_time.html#a000bf792d7b6f0b77248cff9f8003e29"> 242</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a000bf792d7b6f0b77248cff9f8003e29">operator-</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  </div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="class_time.html#accdb29e09b8488f69817d8b51b87db0d"> 252</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a>& <a class="code" href="class_time.html#accdb29e09b8488f69817d8b51b87db0d">operator-=</a>(<a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  </div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  </div>
|
|
<div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="class_time.html#aadaa37244866e6de72d68f5c30c2fe32"> 263</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#aadaa37244866e6de72d68f5c30c2fe32">operator*</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keywordtype">float</span> right);</div>
|
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  </div>
|
|
<div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="class_time.html#a26c778130ebbffc45d4e9dec2669d761"> 273</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a26c778130ebbffc45d4e9dec2669d761">operator*</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <a class="code" href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d">Int64</a> right);</div>
|
|
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  </div>
|
|
<div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="class_time.html#a963d4b276627f9971ac89d24d9764c05"> 283</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a963d4b276627f9971ac89d24d9764c05">operator*</a>(<span class="keywordtype">float</span> left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  </div>
|
|
<div class="line"><a name="l00293"></a><span class="lineno"><a class="line" href="class_time.html#a9a42ea3e8a757b74ffb13b5de927fb30"> 293</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a9a42ea3e8a757b74ffb13b5de927fb30">operator*</a>(<a class="code" href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d">Int64</a> left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  </div>
|
|
<div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="class_time.html#ada2793fbd13ff189dedbb312b7e85b20"> 303</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a>& <a class="code" href="class_time.html#ada2793fbd13ff189dedbb312b7e85b20">operator*=</a>(<a class="code" href="class_time.html">Time</a>& left, <span class="keywordtype">float</span> right);</div>
|
|
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  </div>
|
|
<div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="class_time.html#a92903308f09b4e214b82f5d77cc9450b"> 313</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a>& <a class="code" href="class_time.html#a92903308f09b4e214b82f5d77cc9450b">operator*=</a>(<a class="code" href="class_time.html">Time</a>& left, <a class="code" href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d">Int64</a> right);</div>
|
|
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  </div>
|
|
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  </div>
|
|
<div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="class_time.html#ab26c444540fdcff4d1cfa06f10fd4e39"> 324</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#ab26c444540fdcff4d1cfa06f10fd4e39">operator/</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keywordtype">float</span> right);</div>
|
|
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  </div>
|
|
<div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="class_time.html#ae86e3c3598a3f0b712fabb219e0c2e7e"> 334</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#ae86e3c3598a3f0b712fabb219e0c2e7e">operator/</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <a class="code" href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d">Int64</a> right);</div>
|
|
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  </div>
|
|
<div class="line"><a name="l00344"></a><span class="lineno"><a class="line" href="class_time.html#a471ce6cdae8759db5ec95194cc90aaf8"> 344</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a>& <a class="code" href="class_time.html#a471ce6cdae8759db5ec95194cc90aaf8">operator/=</a>(<a class="code" href="class_time.html">Time</a>& left, <span class="keywordtype">float</span> right);</div>
|
|
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  </div>
|
|
<div class="line"><a name="l00354"></a><span class="lineno"><a class="line" href="class_time.html#a0916454a50c60ca9488b98d715baaaa7"> 354</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a>& <a class="code" href="class_time.html#a0916454a50c60ca9488b98d715baaaa7">operator/=</a>(<a class="code" href="class_time.html">Time</a>& left, <a class="code" href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d">Int64</a> right);</div>
|
|
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  </div>
|
|
<div class="line"><a name="l00364"></a><span class="lineno"><a class="line" href="class_time.html#ab43b815f827c470721c837da24758b58"> 364</a></span>  <span class="keyword">friend</span> <span class="keywordtype">float</span> <a class="code" href="class_time.html#ab43b815f827c470721c837da24758b58">operator/</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  </div>
|
|
<div class="line"><a name="l00374"></a><span class="lineno"><a class="line" href="class_time.html#a8849ab5e3c1954a8590dfd4f978caf01"> 374</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a8849ab5e3c1954a8590dfd4f978caf01">operator%</a>(<span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  </div>
|
|
<div class="line"><a name="l00384"></a><span class="lineno"><a class="line" href="class_time.html#af56e896bfd738245c2cc6c3c706f06f4"> 384</a></span>  <span class="keyword">friend</span> <a class="code" href="class_time.html">Time</a>& <a class="code" href="class_time.html#af56e896bfd738245c2cc6c3c706f06f4">operator%=</a>(<a class="code" href="class_time.html">Time</a>& left, <span class="keyword">const</span> <a class="code" href="class_time.html">Time</a>& right);</div>
|
|
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  </div>
|
|
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  std::chrono::duration<TimeRep, TimePeriod> microseconds;</div>
|
|
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span> };</div>
|
|
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  </div>
|
|
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  </div>
|
|
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> <span class="keyword">template</span><<span class="keyword">typename</span> Rep, <span class="keyword">typename</span> Period></div>
|
|
<div class="line"><a name="l00392"></a><span class="lineno"><a class="line" href="class_time.html#a390653f89d18d9755ef3d4d149600ece"> 392</a></span> <span class="keyword">inline</span> Rep <a class="code" href="class_time.html#a390653f89d18d9755ef3d4d149600ece">Time::AsValue</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> <span class="keyword"></span>{</div>
|
|
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="keywordflow">return</span> std::chrono::duration_cast<std::chrono::duration<Rep, Period>>(microseconds).count();</div>
|
|
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> }</div>
|
|
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  </div>
|
|
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span> <span class="keyword">template</span><<span class="keyword">typename</span> Rep, <span class="keyword">typename</span> Period></div>
|
|
<div class="line"><a name="l00398"></a><span class="lineno"><a class="line" href="class_time.html#ab1f48322b99266fea871d67a1fee90cd"> 398</a></span> <span class="keyword">inline</span> std::chrono::duration<Rep, Period> <a class="code" href="class_time.html#ab1f48322b99266fea871d67a1fee90cd">Time::AsChrono</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span> <span class="keyword"></span>{</div>
|
|
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="keywordflow">return</span> std::chrono::duration_cast<std::chrono::duration<Rep, Period>>(microseconds);</div>
|
|
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> }</div>
|
|
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  </div>
|
|
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="keyword">template</span><<span class="keyword">typename</span> Rep, <span class="keyword">typename</span> Period></div>
|
|
<div class="line"><a name="l00404"></a><span class="lineno"><a class="line" href="class_time.html#a000b522aafdbb493acc70be9fe5abc4a"> 404</a></span> <span class="keyword">inline</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a000b522aafdbb493acc70be9fe5abc4a">Time::Create</a>(<span class="keyword">const</span> Rep& duration)</div>
|
|
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> {</div>
|
|
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  <a class="code" href="class_time.html">Time</a> newTime;</div>
|
|
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  newTime.microseconds = std::chrono::duration_cast<std::chrono::duration<TimeRep, TimePeriod>>(std::chrono::duration<Rep, Period>(duration));</div>
|
|
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <span class="keywordflow">return</span> newTime;</div>
|
|
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span> }</div>
|
|
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  </div>
|
|
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> <span class="keyword">template</span><<span class="keyword">typename</span> Rep, <span class="keyword">typename</span> Period></div>
|
|
<div class="line"><a name="l00412"></a><span class="lineno"><a class="line" href="class_time.html#a2155604a8ee3ede7afb38b9196068e29"> 412</a></span> <span class="keyword">inline</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a000b522aafdbb493acc70be9fe5abc4a">Time::Create</a>(<span class="keyword">const</span> std::chrono::duration<Rep, Period>& duration)</div>
|
|
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span> {</div>
|
|
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <a class="code" href="class_time.html">Time</a> newTime;</div>
|
|
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  newTime.microseconds = std::chrono::duration_cast<std::chrono::duration<TimeRep, TimePeriod>>(duration);</div>
|
|
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <span class="keywordflow">return</span> newTime;</div>
|
|
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span> }</div>
|
|
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  </div>
|
|
<div class="line"><a name="l00419"></a><span class="lineno"><a class="line" href="class_time.html#a93c19710e3f655d6fd0053d156a953a2"> 419</a></span> <span class="keyword">inline</span> <a class="code" href="class_time.html">Time</a> <a class="code" href="class_time.html#a93c19710e3f655d6fd0053d156a953a2">Time::Now</a>()</div>
|
|
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span> {</div>
|
|
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="keywordflow">return</span> <a class="code" href="class_time.html#a000b522aafdbb493acc70be9fe5abc4a">Create</a>(std::chrono::steady_clock::now().time_since_epoch());</div>
|
|
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span> }</div>
|
|
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  </div>
|
|
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span> SDLU_END</div>
|
|
<div class="ttc" id="a_time_8hpp_html_a20dec395170af789ab53b192f4779e13"><div class="ttname"><a href="_time_8hpp.html#a20dec395170af789ab53b192f4779e13">TimePeriod</a></div><div class="ttdeci">std::nano TimePeriod</div><div class="ttdef"><b>Definition:</b> Time.hpp:19</div></div>
|
|
<div class="ttc" id="a_time_8hpp_html_a43ef4129965cab7191b6f0cccc85172c"><div class="ttname"><a href="_time_8hpp.html#a43ef4129965cab7191b6f0cccc85172c">TimeRep</a></div><div class="ttdeci">SDLU_BEGIN typedef Int64 TimeRep</div><div class="ttdef"><b>Definition:</b> Time.hpp:18</div></div>
|
|
<div class="ttc" id="a_util_8hpp_html"><div class="ttname"><a href="_util_8hpp.html">Util.hpp</a></div><div class="ttdoc">Basic utility macros, typedefs...</div></div>
|
|
<div class="ttc" id="a_util_8hpp_html_a20b0c262d9ef5d263888e463dfa99638"><div class="ttname"><a href="_util_8hpp.html#a20b0c262d9ef5d263888e463dfa99638">Int32</a></div><div class="ttdeci">int32_t Int32</div><div class="ttdef"><b>Definition:</b> Util.hpp:24</div></div>
|
|
<div class="ttc" id="a_util_8hpp_html_a2de3f49eadcae5078cd57134586ee25d"><div class="ttname"><a href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d">Int64</a></div><div class="ttdeci">int64_t Int64</div><div class="ttdef"><b>Definition:</b> Util.hpp:27</div></div>
|
|
<div class="ttc" id="a_util_8hpp_html_ad0494d8896dbc587136819e261afdc91"><div class="ttname"><a href="_util_8hpp.html#ad0494d8896dbc587136819e261afdc91">SDLU_BEGIN</a></div><div class="ttdeci">#define SDLU_BEGIN</div><div class="ttdef"><b>Definition:</b> Util.hpp:32</div></div>
|
|
<div class="ttc" id="aclass_time_html"><div class="ttname"><a href="class_time.html">Time</a></div><div class="ttdoc">This class wraps std::chrono::duration and defines some conversions for commonly used times.</div><div class="ttdef"><b>Definition:</b> Time.hpp:24</div></div>
|
|
<div class="ttc" id="aclass_time_html_a000b522aafdbb493acc70be9fe5abc4a"><div class="ttname"><a href="class_time.html#a000b522aafdbb493acc70be9fe5abc4a">Time::Create</a></div><div class="ttdeci">static Time Create(const Rep &duration)</div><div class="ttdoc">Stores the given scalar as a time, using the given format.</div><div class="ttdef"><b>Definition:</b> Time.hpp:404</div></div>
|
|
<div class="ttc" id="aclass_time_html_a000bf792d7b6f0b77248cff9f8003e29"><div class="ttname"><a href="class_time.html#a000bf792d7b6f0b77248cff9f8003e29">Time::operator-</a></div><div class="ttdeci">friend Time operator-(const Time &left, const Time &right)</div><div class="ttdoc">Overload of - operator to subtract two Times.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a07472e52ba2ce81714f231d23adf8547"><div class="ttname"><a href="class_time.html#a07472e52ba2ce81714f231d23adf8547">Time::operator!=</a></div><div class="ttdeci">friend bool operator!=(const Time &left, const Time &right)</div><div class="ttdoc">Overload of != operator comparing two Times.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a0916454a50c60ca9488b98d715baaaa7"><div class="ttname"><a href="class_time.html#a0916454a50c60ca9488b98d715baaaa7">Time::operator/=</a></div><div class="ttdeci">friend Time & operator/=(Time &left, Int64 right)</div><div class="ttdoc">Overload of /= operator to divide a Time by a scalar.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a2193058fee71c2d63de3c113d92a2de7"><div class="ttname"><a href="class_time.html#a2193058fee71c2d63de3c113d92a2de7">Time::AsSeconds</a></div><div class="ttdeci">float AsSeconds() const</div><div class="ttdoc">Returns the stored time in seconds.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a26c778130ebbffc45d4e9dec2669d761"><div class="ttname"><a href="class_time.html#a26c778130ebbffc45d4e9dec2669d761">Time::operator*</a></div><div class="ttdeci">friend Time operator*(const Time &left, Int64 right)</div><div class="ttdoc">Overload of * operator to multiply a Time with a scalar.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a3220188faf2f26989df18166286bfe43"><div class="ttname"><a href="class_time.html#a3220188faf2f26989df18166286bfe43">Time::operator+</a></div><div class="ttdeci">friend Time operator+(const Time &left, const Time &right)</div><div class="ttdoc">Overload of + operator to add two Times.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a390653f89d18d9755ef3d4d149600ece"><div class="ttname"><a href="class_time.html#a390653f89d18d9755ef3d4d149600ece">Time::AsValue</a></div><div class="ttdeci">Rep AsValue() const</div><div class="ttdoc">Returns the stored time in the specified format as a scalar.</div><div class="ttdef"><b>Definition:</b> Time.hpp:392</div></div>
|
|
<div class="ttc" id="aclass_time_html_a3c3dad1ce180f5759e1228713b2c30e6"><div class="ttname"><a href="class_time.html#a3c3dad1ce180f5759e1228713b2c30e6">Time::AsChronoMilliseconds</a></div><div class="ttdeci">std::chrono::milliseconds AsChronoMilliseconds() const</div><div class="ttdoc">Returns the stored time in std::chrono::milliseconds.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a4245e409c7347d1d671858962c2ca3b5"><div class="ttname"><a href="class_time.html#a4245e409c7347d1d671858962c2ca3b5">Time::Time</a></div><div class="ttdeci">Time()</div><div class="ttdoc">Default constructor. Constructs a time with value 0.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a471ce6cdae8759db5ec95194cc90aaf8"><div class="ttname"><a href="class_time.html#a471ce6cdae8759db5ec95194cc90aaf8">Time::operator/=</a></div><div class="ttdeci">friend Time & operator/=(Time &left, float right)</div><div class="ttdoc">Overload of /= operator to divide a Time by a scalar.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a7c6ad1774af8c8f70bd7d0a4f1f2928d"><div class="ttname"><a href="class_time.html#a7c6ad1774af8c8f70bd7d0a4f1f2928d">Time::AsMilliseconds</a></div><div class="ttdeci">Int32 AsMilliseconds() const</div><div class="ttdoc">Returns the stored time in milliseconds.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a7cdacd27ba57fdc59daeca5e787ed433"><div class="ttname"><a href="class_time.html#a7cdacd27ba57fdc59daeca5e787ed433">Time::AsMicroseconds</a></div><div class="ttdeci">Int64 AsMicroseconds() const</div><div class="ttdoc">Returns the stored time in microseconds.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a8849ab5e3c1954a8590dfd4f978caf01"><div class="ttname"><a href="class_time.html#a8849ab5e3c1954a8590dfd4f978caf01">Time::operator%</a></div><div class="ttdeci">friend Time operator%(const Time &left, const Time &right)</div><div class="ttdoc">Overload of % operator to calculate the modulo of a Time.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a8d0e9f87d5b0fdd8d12b0cc35cfd4e56"><div class="ttname"><a href="class_time.html#a8d0e9f87d5b0fdd8d12b0cc35cfd4e56">Time::Milliseconds</a></div><div class="ttdeci">friend Time Milliseconds(Int32 milliseconds)</div><div class="ttdoc">Creates a Time object from a given number of milliseconds.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a90988eb9657b79c370253c0cc952386a"><div class="ttname"><a href="class_time.html#a90988eb9657b79c370253c0cc952386a">Time::operator==</a></div><div class="ttdeci">friend bool operator==(const Time &left, const Time &right)</div><div class="ttdoc">Overload of == operator comparing two Times.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a927a66f4a96151c1e241ba69755fa982"><div class="ttname"><a href="class_time.html#a927a66f4a96151c1e241ba69755fa982">Time::AsChronoSeconds</a></div><div class="ttdeci">std::chrono::seconds AsChronoSeconds() const</div><div class="ttdoc">Returns the stored time in std::chrono::seconds.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a92903308f09b4e214b82f5d77cc9450b"><div class="ttname"><a href="class_time.html#a92903308f09b4e214b82f5d77cc9450b">Time::operator*=</a></div><div class="ttdeci">friend Time & operator*=(Time &left, Int64 right)</div><div class="ttdoc">Overload of *= operator to multiply a Time with a scalar.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a93c19710e3f655d6fd0053d156a953a2"><div class="ttname"><a href="class_time.html#a93c19710e3f655d6fd0053d156a953a2">Time::Now</a></div><div class="ttdeci">static Time Now()</div><div class="ttdoc">Creates a Time object storing the current point in time.</div><div class="ttdef"><b>Definition:</b> Time.hpp:419</div></div>
|
|
<div class="ttc" id="aclass_time_html_a953a4bbac412bf3064879a495bf91a96"><div class="ttname"><a href="class_time.html#a953a4bbac412bf3064879a495bf91a96">Time::AsChronoMicroseconds</a></div><div class="ttdeci">std::chrono::microseconds AsChronoMicroseconds() const</div><div class="ttdoc">Returns the stored time in std::chrono::microseconds.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a963d4b276627f9971ac89d24d9764c05"><div class="ttname"><a href="class_time.html#a963d4b276627f9971ac89d24d9764c05">Time::operator*</a></div><div class="ttdeci">friend Time operator*(float left, const Time &right)</div><div class="ttdoc">Overload of * operator to multiply a Time with a scalar.</div></div>
|
|
<div class="ttc" id="aclass_time_html_a9a42ea3e8a757b74ffb13b5de927fb30"><div class="ttname"><a href="class_time.html#a9a42ea3e8a757b74ffb13b5de927fb30">Time::operator*</a></div><div class="ttdeci">friend Time operator*(Int64 left, const Time &right)</div><div class="ttdoc">Overload of * operator to multiply a Time with a scalar.</div></div>
|
|
<div class="ttc" id="aclass_time_html_aadaa37244866e6de72d68f5c30c2fe32"><div class="ttname"><a href="class_time.html#aadaa37244866e6de72d68f5c30c2fe32">Time::operator*</a></div><div class="ttdeci">friend Time operator*(const Time &left, float right)</div><div class="ttdoc">Overload of * operator to multiply a Time with a scalar.</div></div>
|
|
<div class="ttc" id="aclass_time_html_aaea901fceef777e45cb7b50099a8dd25"><div class="ttname"><a href="class_time.html#aaea901fceef777e45cb7b50099a8dd25">Time::Seconds</a></div><div class="ttdeci">friend Time Seconds(float seconds)</div><div class="ttdoc">Creates a Time object from a given number of seconds.</div></div>
|
|
<div class="ttc" id="aclass_time_html_ab1f48322b99266fea871d67a1fee90cd"><div class="ttname"><a href="class_time.html#ab1f48322b99266fea871d67a1fee90cd">Time::AsChrono</a></div><div class="ttdeci">std::chrono::duration< Rep, Period > AsChrono() const</div><div class="ttdoc">Returns the stored time in the specified format as a std::duration.</div><div class="ttdef"><b>Definition:</b> Time.hpp:398</div></div>
|
|
<div class="ttc" id="aclass_time_html_ab2361ddfe30cda51480b066eac103fb4"><div class="ttname"><a href="class_time.html#ab2361ddfe30cda51480b066eac103fb4">Time::Microseconds</a></div><div class="ttdeci">friend Time Microseconds(Int64 microseconds)</div><div class="ttdoc">Creates a Time object from a given number of microseconds.</div></div>
|
|
<div class="ttc" id="aclass_time_html_ab26c444540fdcff4d1cfa06f10fd4e39"><div class="ttname"><a href="class_time.html#ab26c444540fdcff4d1cfa06f10fd4e39">Time::operator/</a></div><div class="ttdeci">friend Time operator/(const Time &left, float right)</div><div class="ttdoc">Overload of / operator to divide a Time by a scalar.</div></div>
|
|
<div class="ttc" id="aclass_time_html_ab43b815f827c470721c837da24758b58"><div class="ttname"><a href="class_time.html#ab43b815f827c470721c837da24758b58">Time::operator/</a></div><div class="ttdeci">friend float operator/(const Time &left, const Time &right)</div><div class="ttdoc">Overload of / operator to divide two Times.</div></div>
|
|
<div class="ttc" id="aclass_time_html_ac113395867bbeb311793564b53b992fa"><div class="ttname"><a href="class_time.html#ac113395867bbeb311793564b53b992fa">Time::operator+=</a></div><div class="ttdeci">friend Time & operator+=(Time &left, const Time &right)</div><div class="ttdoc">Overload of += operator to add two Times.</div></div>
|
|
<div class="ttc" id="aclass_time_html_ac32257e5c86d2e57b56b0915e1809ead"><div class="ttname"><a href="class_time.html#ac32257e5c86d2e57b56b0915e1809ead">Time::operator<</a></div><div class="ttdeci">friend bool operator<(const Time &left, const Time &right)</div><div class="ttdoc">Overload of < operator comparing two Times.</div></div>
|
|
<div class="ttc" id="aclass_time_html_accdb29e09b8488f69817d8b51b87db0d"><div class="ttname"><a href="class_time.html#accdb29e09b8488f69817d8b51b87db0d">Time::operator-=</a></div><div class="ttdeci">friend Time & operator-=(Time &left, const Time &right)</div><div class="ttdoc">Overload of -= operator to subtract two Times.</div></div>
|
|
<div class="ttc" id="aclass_time_html_ad79e35ba7b47ff8c6fa44a91ba7e1db3"><div class="ttname"><a href="class_time.html#ad79e35ba7b47ff8c6fa44a91ba7e1db3">Time::operator-</a></div><div class="ttdeci">friend Time operator-(const Time &right)</div><div class="ttdoc">Overload of the unary - operator.</div></div>
|
|
<div class="ttc" id="aclass_time_html_ada2793fbd13ff189dedbb312b7e85b20"><div class="ttname"><a href="class_time.html#ada2793fbd13ff189dedbb312b7e85b20">Time::operator*=</a></div><div class="ttdeci">friend Time & operator*=(Time &left, float right)</div><div class="ttdoc">Overload of *= operator to multiply a Time with a scalar.</div></div>
|
|
<div class="ttc" id="aclass_time_html_ae86e3c3598a3f0b712fabb219e0c2e7e"><div class="ttname"><a href="class_time.html#ae86e3c3598a3f0b712fabb219e0c2e7e">Time::operator/</a></div><div class="ttdeci">friend Time operator/(const Time &left, Int64 right)</div><div class="ttdoc">Overload of / operator to divide a Time by a scalar.</div></div>
|
|
<div class="ttc" id="aclass_time_html_af56e896bfd738245c2cc6c3c706f06f4"><div class="ttname"><a href="class_time.html#af56e896bfd738245c2cc6c3c706f06f4">Time::operator%=</a></div><div class="ttdeci">friend Time & operator%=(Time &left, const Time &right)</div><div class="ttdoc">Overload of % operator to calculate the modulo of a Time.</div></div>
|
|
<div class="ttc" id="aclass_time_html_af7a34ee9cd59bb411822899ad5132814"><div class="ttname"><a href="class_time.html#af7a34ee9cd59bb411822899ad5132814">Time::operator>=</a></div><div class="ttdeci">friend bool operator>=(const Time &left, const Time &right)</div><div class="ttdoc">Overload of < operator comparing two Times.</div></div>
|
|
<div class="ttc" id="aclass_time_html_afaa678c360a26ff8f65d6e1a8e22a2ba"><div class="ttname"><a href="class_time.html#afaa678c360a26ff8f65d6e1a8e22a2ba">Time::operator<=</a></div><div class="ttdeci">friend bool operator<=(const Time &left, const Time &right)</div><div class="ttdoc">Overload of <= operator comparing two Times.</div></div>
|
|
<div class="ttc" id="aclass_time_html_afef5512f7171297e82db0046b7028562"><div class="ttname"><a href="class_time.html#afef5512f7171297e82db0046b7028562">Time::operator></a></div><div class="ttdeci">friend bool operator>(const Time &left, const Time &right)</div><div class="ttdoc">Overload of > operator comparing two Times.</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_ae392c548e81aebab219dc0867f8ff50.html">structures</a></li><li class="navelem"><a class="el" href="_time_8hpp.html">Time.hpp</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|