<h2title="Uses of Class System.TimeSpan"class="title">Uses of Class<br>System.TimeSpan</h2>
</div>
<divclass="classUseContainer">
<ulclass="blockList">
<liclass="blockList">
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></span><spanclass="tabEnd"> </span></caption>
<h3>Uses of <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> in <ahref="../../Microsoft/Xna/Framework/Audio/package-summary.html">Microsoft.Xna.Framework.Audio</a></h3>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <ahref="../../Microsoft/Xna/Framework/Audio/package-summary.html">Microsoft.Xna.Framework.Audio</a> that return <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<ahref="../../Microsoft/Xna/Framework/Audio/AudioChannels.html"title="enum in Microsoft.Xna.Framework.Audio">AudioChannels</a> channels)</code>
<divclass="block">Returns the sample duration based on the specified sample size and sample rate.</div>
</td>
</tr>
</tbody>
</table>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <ahref="../../Microsoft/Xna/Framework/Audio/package-summary.html">Microsoft.Xna.Framework.Audio</a> with parameters of type <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code>int</code></td>
<tdclass="colLast"><spanclass="strong">DynamicSoundEffectInstance.</span><code><strong><ahref="../../Microsoft/Xna/Framework/Audio/DynamicSoundEffectInstance.html#GetSampleSizeInBytes(System.TimeSpan)">GetSampleSizeInBytes</a></strong>(<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> duration)</code>
<divclass="block">Returns the size of the audio buffer required to contain audio samples based on the specified duration.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static int</code></td>
<tdclass="colLast"><spanclass="strong">SoundEffect.</span><code><strong><ahref="../../Microsoft/Xna/Framework/Audio/SoundEffect.html#GetSampleSizeInBytes(System.TimeSpan, int, Microsoft.Xna.Framework.Audio.AudioChannels)">GetSampleSizeInBytes</a></strong>(<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> duration,
int sampleRate,
<ahref="../../Microsoft/Xna/Framework/Audio/AudioChannels.html"title="enum in Microsoft.Xna.Framework.Audio">AudioChannels</a> channels)</code>
<divclass="block">Returns the size of the audio sample based on duration, sample rate, and audio channels.</div>
<h3>Uses of <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> in <ahref="../../Microsoft/Xna/Framework/GamerServices/package-summary.html">Microsoft.Xna.Framework.GamerServices</a></h3>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <ahref="../../Microsoft/Xna/Framework/GamerServices/package-summary.html">Microsoft.Xna.Framework.GamerServices</a> with parameters of type <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code>static void</code></td>
<tdclass="colLast"><spanclass="strong">Guide.</span><code><strong><ahref="../../Microsoft/Xna/Framework/GamerServices/Guide.html#DelayNotifications(System.TimeSpan)">DelayNotifications</a></strong>(<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> delay)</code> </td>
<h3>Uses of <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> in <ahref="../../Microsoft/Xna/Framework/Input/Touch/package-summary.html">Microsoft.Xna.Framework.Input.Touch</a></h3>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <ahref="../../Microsoft/Xna/Framework/Input/Touch/package-summary.html">Microsoft.Xna.Framework.Input.Touch</a> declared as <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<divclass="block">Holds the starting time for this touch gesture sample.</div>
</td>
</tr>
</tbody>
</table>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <ahref="../../Microsoft/Xna/Framework/Input/Touch/package-summary.html">Microsoft.Xna.Framework.Input.Touch</a> with parameters of type <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colLast"><code><strong><ahref="../../Microsoft/Xna/Framework/Input/Touch/GestureSample.html#GestureSample(Microsoft.Xna.Framework.Input.Touch.GestureType, System.TimeSpan, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)">GestureSample</a></strong>(<ahref="../../Microsoft/Xna/Framework/Input/Touch/GestureType.html"title="enum in Microsoft.Xna.Framework.Input.Touch">GestureType</a> gestureType,
<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> timestamp,
<ahref="../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position2,
<ahref="../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> delta,
<ahref="../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> delta2)</code> </td>
<h3>Uses of <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> in <ahref="../../Microsoft/Xna/Framework/Net/package-summary.html">Microsoft.Xna.Framework.Net</a></h3>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <ahref="../../Microsoft/Xna/Framework/Net/package-summary.html">Microsoft.Xna.Framework.Net</a> that return <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<divclass="block">Gets the average (median) round trip time of all the network packets that were sent during the quality of service measurement process.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<divclass="block">Gets the minimum round trip time of any network packet that was sent during the quality of service measurement process.</div>
</td>
</tr>
</tbody>
</table>
</li>
<liclass="blockList"><aname="System">
<!---->
</a>
<h3>Uses of <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> in <ahref="../../System/package-summary.html">System</a></h3>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <ahref="../../System/package-summary.html">System</a> declared as <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<divclass="block">Represents the zero TimeSpan value.</div>
</td>
</tr>
</tbody>
</table>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <ahref="../../System/package-summary.html">System</a> that return <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<tdclass="colLast"><spanclass="strong">TimeSpan.</span><code><strong><ahref="../../System/TimeSpan.html#Add(System.TimeSpan)">Add</a></strong>(<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> ts)</code>
<divclass="block">Adds the specified TimeSpan to this instance.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<divclass="block">Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<divclass="block">Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<divclass="block">Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<divclass="block">Constructs a new TimeSpan object from a time interval specified in a string.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<tdclass="colLast"><spanclass="strong">TimeSpan.</span><code><strong><ahref="../../System/TimeSpan.html#Subtract(System.TimeSpan)">Subtract</a></strong>(<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> ts)</code>
<divclass="block">Subtracts the specified TimeSpan from this instance.</div>
</td>
</tr>
</tbody>
</table>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <ahref="../../System/package-summary.html">System</a> with parameters of type <ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<tdclass="colLast"><spanclass="strong">TimeSpan.</span><code><strong><ahref="../../System/TimeSpan.html#Add(System.TimeSpan)">Add</a></strong>(<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> ts)</code>
<divclass="block">Adds the specified TimeSpan to this instance.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static int</code></td>
<tdclass="colLast"><spanclass="strong">TimeSpan.</span><code><strong><ahref="../../System/TimeSpan.html#Compare(System.TimeSpan, System.TimeSpan)">Compare</a></strong>(<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> t1,
<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> t2)</code>
<divclass="block">Compares two TimeSpan values and returns an integer that indicates their relationship.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>int</code></td>
<tdclass="colLast"><spanclass="strong">TimeSpan.</span><code><strong><ahref="../../System/TimeSpan.html#CompareTo(System.TimeSpan)">CompareTo</a></strong>(<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> value)</code>
<divclass="block">Compares this instance to a specified TimeSpan object and returns an indication of their relative values.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><spanclass="strong">TimeSpan.</span><code><strong><ahref="../../System/TimeSpan.html#Equals(System.TimeSpan)">Equals</a></strong>(<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> obj)</code>
<divclass="block">Returns a value indicating whether this instance is equal to a specified TimeSpan object.</div>
<tdclass="colLast"><spanclass="strong">TimeSpan.</span><code><strong><ahref="../../System/TimeSpan.html#Equals(System.TimeSpan, System.TimeSpan)">Equals</a></strong>(<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> t1,
<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> t2)</code>
<divclass="block">Returns a value indicating whether two specified instances of TimeSpan are equal.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a></code></td>
<tdclass="colLast"><spanclass="strong">TimeSpan.</span><code><strong><ahref="../../System/TimeSpan.html#Subtract(System.TimeSpan)">Subtract</a></strong>(<ahref="../../System/TimeSpan.html"title="class in System">TimeSpan</a> ts)</code>
<divclass="block">Subtracts the specified TimeSpan from this instance.</div>