Html程序  |  634行  |  24.6 KB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>NTPTime class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
<hr><h1>NTPTime Class Reference<br>
<small>
[<a class="el" href="group__osclbase.html">OSCL Base</a>]</small>
</h1>The NTPTime class represents a time value as the number of seconds since 0h (UTC) Jan. 1, 1900. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="oscl__time_8h-source.html">oscl_time.h</a>&gt;</code>
<p>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a0">NTPTime</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>The default constructor creates an NTPTime instance representing the current system time.</em> <a href="#a0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a1">NTPTime</a> (const NTPTime &amp;src)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Copy constructor to create a new NTPTime from an existing one.</em> <a href="#a1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a2">NTPTime</a> (const uint32 seconds)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Construct an NTPTime from a uint32.</em> <a href="#a2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a3">NTPTime</a> (const int32 seconds)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Construct an NTPTime from a int.</em> <a href="#a3"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a4">NTPTime</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;t)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Construct a NTPTime instance from a <a class="el" href="classTimeValue.html">TimeValue</a> instance.</em> <a href="#a4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a5">NTPTime</a> (const <a class="el" href="group__osclbase.html#a31">uint64</a> value)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Construct a NTPTime instance from a uint64 value.</em> <a href="#a5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF NTPTime &amp;&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a6">operator=</a> (uint32 newval)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>The assignment operator for a 32 bit integer.</em> <a href="#a6"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF NTPTime &amp;&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a7">operator=</a> (<a class="el" href="group__osclbase.html#a31">uint64</a> newval)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>The assignment operator for a 64 bit integer.</em> <a href="#a7"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF NTPTime &amp;&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a8">operator+=</a> (<a class="el" href="group__osclbase.html#a31">uint64</a> val)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>The += operator is used to add a 64 bit 32.32 value to an existing NTPTime value.</em> <a href="#a8"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF NTPTime&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a9">operator-</a> (const NTPTime &amp;ntpt) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>The - operator allows subtraction of one NTPTime value from another. This is useful to measure an interval.</em> <a href="#a9"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a10">set_from_system_time</a> (const uint32 systemtime)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>This method converts a 32-bit system time to NTP time.</em> <a href="#a10"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF uint32&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a11">get_middle32</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Grab the middle 32 bits of the 64 bit 32.32 representation.</em> <a href="#a11"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF uint32&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a12">get_upper32</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>This method returns the upper 32 bits of the 32.32 representation.</em> <a href="#a12"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF uint32&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a13">get_lower32</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>This method returns the lower 32 bits of the 32.32 representation.</em> <a href="#a13"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int32&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a14">to_system_time</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>This method converts the ntp time value to system time.</em> <a href="#a14"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_COND_IMPORT_REF <a class="el" href="group__osclbase.html#a31">uint64</a>&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a15">get_value</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>This method returns the 32.32 ntp representation.</em> <a href="#a15"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>OSCL_IMPORT_REF int&nbsp;</td><td valign=bottom><a class="el" href="classNTPTime.html#a16">set_to_current_time</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>This method sets the 32.32 representation to the current system time value.</em> <a href="#a16"></a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The NTPTime class represents a time value as the number of seconds since 0h (UTC) Jan. 1, 1900.
<p>
The NTPTime class: Conversion to/from Unix (epoch at 0h Jan. 1, 1970) amount to addition/subtraction of 2208988800. A single 64 bit value is used to represent the time. This value represents the number of seconds since 0h (UTC) Jan. 1, 1900. There is an implied binary point betweeen the upper 32 bits and lower 32 bits (this is referred to as a 32.32 fractional representation). For example a binary value of 00000000 00000000 00000000 00000011 10000000 00000000 00000000 00000000 represents 3.5 seconds since Jan 1, 1900. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="NTPTime::NTPTime"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF NTPTime::NTPTime </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The default constructor creates an NTPTime instance representing the current system time.
<p>
    </td>
  </tr>
</table>
<a name="a1" doxytag="NTPTime::NTPTime"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF NTPTime::NTPTime </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const NTPTime &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>src</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Copy constructor to create a new NTPTime from an existing one.
<p>
    </td>
  </tr>
</table>
<a name="a2" doxytag="NTPTime::NTPTime"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF NTPTime::NTPTime </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const uint32&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>seconds</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct an NTPTime from a uint32.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>seconds</em>&nbsp;</td><td>
The uint32 input represents the number of seconds since Jan. 1, 1900. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a3" doxytag="NTPTime::NTPTime"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF NTPTime::NTPTime </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const int32&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>seconds</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct an NTPTime from a int.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>seconds</em>&nbsp;</td><td>
The int input represents the number of seconds since Jan. 1, 1900. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a4" doxytag="NTPTime::NTPTime"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF NTPTime::NTPTime </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>t</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct a NTPTime instance from a <a class="el" href="classTimeValue.html">TimeValue</a> instance.
<p>
This constructor creates an NTPTime value representing the same absolute time as the <a class="el" href="classTimeValue.html">TimeValue</a> parameter. <dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>t</em>&nbsp;</td><td>
A reference to a <a class="el" href="classTimeValue.html">TimeValue</a> object. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a5" doxytag="NTPTime::NTPTime"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF NTPTime::NTPTime </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="group__osclbase.html#a31">uint64</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>value</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct a NTPTime instance from a uint64 value.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>value</em>&nbsp;</td><td>
A 64 bit integer argument which is used as the ntp 32.32 fractional representation. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a13" doxytag="NTPTime::get_lower32"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF uint32 NTPTime::get_lower32 </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This method returns the lower 32 bits of the 32.32 representation.
<p>
    </td>
  </tr>
</table>
<a name="a11" doxytag="NTPTime::get_middle32"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF uint32 NTPTime::get_middle32 </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Grab the middle 32 bits of the 64 bit 32.32 representation.
<p>
    </td>
  </tr>
</table>
<a name="a12" doxytag="NTPTime::get_upper32"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF uint32 NTPTime::get_upper32 </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This method returns the upper 32 bits of the 32.32 representation.
<p>
    </td>
  </tr>
</table>
<a name="a15" doxytag="NTPTime::get_value"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF <a class="el" href="group__osclbase.html#a31">uint64</a> NTPTime::get_value </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This method returns the 32.32 ntp representation.
<p>
    </td>
  </tr>
</table>
<a name="a8" doxytag="NTPTime::operator+="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF NTPTime&amp; NTPTime::operator+= </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__osclbase.html#a31">uint64</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>val</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The += operator is used to add a 64 bit 32.32 value to an existing NTPTime value.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>val</em>&nbsp;</td><td>
The 64 bit 32.32 value to add to this object's value. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a9" doxytag="NTPTime::operator-"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF NTPTime NTPTime::operator- </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const NTPTime &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>ntpt</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The - operator allows subtraction of one NTPTime value from another. This is useful to measure an interval.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>ntpt</em>&nbsp;</td><td>
A reference to the NTPTime object to be subracted from this one. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a7" doxytag="NTPTime::operator="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF NTPTime&amp; NTPTime::operator= </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__osclbase.html#a31">uint64</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>newval</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The assignment operator for a 64 bit integer.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>newval</em>&nbsp;</td><td>
A 64 bit value which represents the 32.32 fractional representation of the ntp time. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a6" doxytag="NTPTime::operator="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_COND_IMPORT_REF NTPTime&amp; NTPTime::operator= </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uint32&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>newval</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The assignment operator for a 32 bit integer.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>newval</em>&nbsp;</td><td>
A 32 bit integer representing the upper 32 bits of the 32.32 NTP time (e.g. the number of whole seconds since Jan 1, 1900 UTC). </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a10" doxytag="NTPTime::set_from_system_time"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NTPTime::set_from_system_time </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const uint32&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>systemtime</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This method converts a 32-bit system time to NTP time.
<p>
This method sets the value of the NTPTime instance to the absolute time represented by the 32 bit input argument. <dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>systemtime</em>&nbsp;</td><td>
This 32-bit value is interpreted as the number of seconds since the unix epoch Jan. 1 1970. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a16" doxytag="NTPTime::set_to_current_time"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OSCL_IMPORT_REF int NTPTime::set_to_current_time </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This method sets the 32.32 representation to the current system time value.
<p>
    </td>
  </tr>
</table>
<a name="a14" doxytag="NTPTime::to_system_time"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int32 NTPTime::to_system_time </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This method converts the ntp time value to system time.
<p>
This method returns a 32 bit value representing the same absolute time as the NTP time value, but expressed as whole seconds since the unix epoch. The fractional part of the ntp value is discarded.     </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="oscl__time_8h-source.html">oscl_time.h</a></ul>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
</small></address>
</body>
</html>