79 lines
4.1 KiB
HTML
79 lines
4.1 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
|
||
|
<title>Software Clock APIs</title>
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<!-- Begin Header Records ========================================= -->
|
||
|
<!-- NETMG2 SCRIPT A converted by B2H R4.1 (346) (CMS) by HOLTJM at -->
|
||
|
<!-- RCHVMW2 on 29 Jan 1999 at 10:01:37 -->
|
||
|
<!-- File new for V5R3 -->
|
||
|
<!-- 030918 JETAYLOR replaced API and/or Exit listings with -->
|
||
|
<!-- pagegenerator output from javascript array -->
|
||
|
<!-- 031112 JETAYLOR replaced API and/or Exit listings with -->
|
||
|
<!-- pagegenerator output from javascript array -->
|
||
|
<!-- End Header Records -->
|
||
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<a name="Top_Of_Page"></a>
|
||
|
<!-- Java sync-link -->
|
||
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript">
|
||
|
</script>
|
||
|
|
||
|
<h2>Software Clock APIs</h2>
|
||
|
|
||
|
<p>The Software Clock APIs are:</p>
|
||
|
|
||
|
<!-- ***** NOTE ***** Do not manually update text or links in this section. -->
|
||
|
<!-- Updates made in this section *will* be overlaid by automated tools -->
|
||
|
<!-- Notify User Technologies of needed updates to be made in XML for API finder.-->
|
||
|
<!--***************API BEGIN PASTE***************-->
|
||
|
<ul>
|
||
|
<li><A HREF="qp0zadjtime.htm">Qp0zAdjTime()</A> (Adjust Software Clock) makes small adjustments to the software clock, either slowing it down or speeding it up by the time specified in the delta parameter.</li>
|
||
|
<li><A HREF="qp0zgettime.htm">Qp0zGetTimeofDay()</A> (Get Current Software Clock Time) retrieves the current software clock time and places it in the timeval structure pointed to by tp.</li>
|
||
|
<li><A HREF="qp0zsettime.htm">Qp0zSetTimeofDay()</A> (Set Software Clock) sets the software clock to the time contained in the timeval structure pointed to by tp.</li>
|
||
|
</ul>
|
||
|
<!--***************API END PASTE***************-->
|
||
|
|
||
|
<p><strong>Note:</strong> These functions use header (include) files from the
|
||
|
library QSYSINC, which is optionally installable. Make sure QSYSINC is
|
||
|
installed on your system before using any of the functions. See
|
||
|
<a href="unix13.htm">Header Files for UNIX-Type Functions</a> for the file and member
|
||
|
name of each header file.</p>
|
||
|
|
||
|
<p>The Software Clock is a system facility that determines the current
|
||
|
Universal Coordinated Time (UTC) in seconds and microseconds since 1 January
|
||
|
1970, 00:00:00 (epoch-1970). The current time is determined by keeping an
|
||
|
internal 'time-delta', which is an offset from the system clock. When <strong>
|
||
|
Qp0zGetTimeofDay()</strong> is called to retrieve the software clock time, the
|
||
|
time returned is calculated by taking the current system time, subtracting the
|
||
|
QUTCOFFSET system value, then adding the internal time-delta.</p>
|
||
|
|
||
|
<p>The <strong>Qp0zSettTmeofD</strong><strong>ay()</strong> API sets or changes
|
||
|
the time-delta, without affecting the system clock or the QUTCOFFSET system
|
||
|
value. The <strong>Qp0zAdjtime()</strong> API slowly changes the time-delta,
|
||
|
without affecting the system clock either. Adjustments are made at a rate of
|
||
|
approximately 1 second of adjustment for every 100 seconds of elapsed time.</p>
|
||
|
|
||
|
<p>System components do not base their timestamps on the software clock,
|
||
|
but use the system clock instead. The software clock will be removed in a
|
||
|
future release and its use is discouraged.</p>
|
||
|
|
||
|
<hr>
|
||
|
<center>
|
||
|
<table cellpadding="2" cellspacing="2">
|
||
|
<tr align="center">
|
||
|
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
|
||
|
"unix.htm">UNIX-Type APIs</a> | <a href="aplist.htm">APIs by category</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</center>
|
||
|
</body>
|
||
|
</html>
|
||
|
|