1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 22 span.virtual_style 23 { 24 font-size : 8pt; 25 color : white; 26 font-weight : bold; 27 background : #0a0; 28 border-left : solid 1px #0f0; 29 border-top : solid 1px #0f0; 30 border-right : solid 1px #060; 31 border-bottom : solid 1px #060; 32 padding-left : 2px; 33 padding-right : 2px; 34 } 35 36 span.protected_style 37 { 38 font-size : 8pt; 39 color : white; 40 font-weight : bold; 41 background : #444; 42 border-left : solid 1px #ccc; 43 border-top : solid 1px #ccc; 44 border-right : solid 1px #222; 45 border-bottom : solid 1px #222; 46 padding-left : 2px; 47 padding-right : 2px; 48 } 49 --></style> 50<title>nn::fnd::TimeSpan</title> 51 </head> 52 <body> 53<h1><CODE>nn::fnd::TimeSpan</CODE> Class</h1> 54<h2>Syntax</h2> 55 <div class="section"> 56 <pre class="definition">class TimeSpan</pre> 57 </div> 58<h2>Description</h2> 59 <div class="section"> 60<p>Class for representing time.</p><p>Within this class, time is expressed in nanoseconds using 64-bit integers. This class is used to prevent unit mistakes in the values that are passed to functions that specify time within the SDK. The <CODE>From*</CODE> functions allow you to create instances of this class from integer values of the various units. In order to prevent ambiguity in units, no implicit conversion from integers to this data type is provided. However, 0 can be converted implicitly to this data type.</p><!-- write here --></div> 61 <a name="function" id="function"> 62<h2>Member Functions</h2> 63 <div class="section"> 64 <table class="members"> 65 <tr> 66 <td width="100"> </td> 67 <th> 68<a href="../../../nn/fnd/TimeSpan/TimeSpan.html"><CODE>TimeSpan</CODE></a> 69 </th> 70<td>Constructor that initializes the time to 0.</td> 71 </tr> 72 <tr> 73 <td width="100"> </td> 74 <th> 75<a href="../../../nn/fnd/TimeSpan/GetDays.html"><CODE>GetDays</CODE></a> 76 </th> 77<td>Gets the time in days.</td> 78 </tr> 79 <tr> 80 <td width="100"> </td> 81 <th> 82<a href="../../../nn/fnd/TimeSpan/GetHours.html"><CODE>GetHours</CODE></a> 83 </th> 84<td>Gets the time in hours.</td> 85 </tr> 86 <tr> 87 <td width="100"> </td> 88 <th> 89<a href="../../../nn/fnd/TimeSpan/GetMinutes.html"><CODE>GetMinutes</CODE></a> 90 </th> 91<td>Gets the time in minutes.</td> 92 </tr> 93 <tr> 94 <td width="100"> </td> 95 <th> 96<a href="../../../nn/fnd/TimeSpan/GetSeconds.html"><CODE>GetSeconds</CODE></a> 97 </th> 98<td>Gets the time in seconds.</td> 99 </tr> 100 <tr> 101 <td width="100"> </td> 102 <th> 103<a href="../../../nn/fnd/TimeSpan/GetMilliSeconds.html"><CODE>GetMilliSeconds</CODE></a> 104 </th> 105<td>Gets the time in milliseconds.</td> 106 </tr> 107 <tr> 108 <td width="100"> </td> 109 <th> 110<a href="../../../nn/fnd/TimeSpan/GetMicroSeconds.html"><CODE>GetMicroSeconds</CODE></a> 111 </th> 112<td>Gets the time in microseconds.</td> 113 </tr> 114 <tr> 115 <td width="100"> </td> 116 <th> 117<a href="../../../nn/fnd/TimeSpan/GetNanoSeconds.html"><CODE>GetNanoSeconds</CODE></a> 118 </th> 119<td>Gets the time in nanoseconds.</td> 120 </tr> 121 <tr> 122 <td width="100"> 123<span class="static_style" title="static">S</span> </td> 124 <th> 125<a href="../../../nn/fnd/TimeSpan/FromNanoSeconds.html"><CODE>FromNanoSeconds</CODE></a> 126 </th> 127<td>Generates a <a href="../../../nn/fnd/TimeSpan/Overview.html"><CODE>TimeSpan</CODE></a> object from a nanoseconds value.</td> 128 </tr> 129 <tr> 130 <td width="100"> 131<span class="static_style" title="static">S</span> </td> 132 <th> 133<a href="../../../nn/fnd/TimeSpan/FromMicroSeconds.html"><CODE>FromMicroSeconds</CODE></a> 134 </th> 135<td>Generates a <a href="../../../nn/fnd/TimeSpan/Overview.html"><CODE>TimeSpan</CODE></a> object from a microseconds value.</td> 136 </tr> 137 <tr> 138 <td width="100"> 139<span class="static_style" title="static">S</span> </td> 140 <th> 141<a href="../../../nn/fnd/TimeSpan/FromMilliSeconds.html"><CODE>FromMilliSeconds</CODE></a> 142 </th> 143<td>Generates a <a href="../../../nn/fnd/TimeSpan/Overview.html"><CODE>TimeSpan</CODE></a> object from a milliseconds value.</td> 144 </tr> 145 <tr> 146 <td width="100"> 147<span class="static_style" title="static">S</span> </td> 148 <th> 149<a href="../../../nn/fnd/TimeSpan/FromSeconds.html"><CODE>FromSeconds</CODE></a> 150 </th> 151<td>Generates a <a href="../../../nn/fnd/TimeSpan/Overview.html"><CODE>TimeSpan</CODE></a> object from a seconds value.</td> 152 </tr> 153 <tr> 154 <td width="100"> 155<span class="static_style" title="static">S</span> </td> 156 <th> 157<a href="../../../nn/fnd/TimeSpan/FromMinutes.html"><CODE>FromMinutes</CODE></a> 158 </th> 159<td>Generates a <a href="../../../nn/fnd/TimeSpan/Overview.html"><CODE>TimeSpan</CODE></a> object from a minutes value.</td> 160 </tr> 161 <tr> 162 <td width="100"> 163<span class="static_style" title="static">S</span> </td> 164 <th> 165<a href="../../../nn/fnd/TimeSpan/FromHours.html"><CODE>FromHours</CODE></a> 166 </th> 167<td>Generates a <a href="../../../nn/fnd/TimeSpan/Overview.html"><CODE>TimeSpan</CODE></a> object from an hours value.</td> 168 </tr> 169 <tr> 170 <td width="100"> 171<span class="static_style" title="static">S</span> </td> 172 <th> 173<a href="../../../nn/fnd/TimeSpan/FromDays.html"><CODE>FromDays</CODE></a> 174 </th> 175<td>Generates a <a href="../../../nn/fnd/TimeSpan/Overview.html"><CODE>TimeSpan</CODE></a> object from a days value.</td> 176 </tr> </table> 177 </div> 178 </a> 179<h2>Revision History</h2> 180 <div class="section"> 181 <dl class="history"> 182 <dt>2010/01/07</dt> 183<dd>Initial version.<br /> 184 </dd> 185 </dl> 186 </div> 187 <hr><p>CONFIDENTIAL</p></body> 188</html>