<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Default clock resolution in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/default-clock-resolution/m-p/2486799#M18944</link>
    <description>Looking at the time.h header file, you can see :-&lt;BR /&gt;&lt;BR /&gt;#ifndef&lt;BR /&gt;   #define CLOCKS_PER_SEC 1000000&lt;BR /&gt;&lt;BR /&gt;Therefore, it looks like you might be able to override the value with your own.&lt;BR /&gt;&lt;BR /&gt;Worth a try.</description>
    <pubDate>Sat, 27 Jan 2001 08:25:07 GMT</pubDate>
    <dc:creator>Andy Monks</dc:creator>
    <dc:date>2001-01-27T08:25:07Z</dc:date>
    <item>
      <title>Default clock resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-clock-resolution/m-p/2486796#M18941</link>
      <description>Clock () indicates that the "potential" resolution is in microseconds but the default resolution is 10 milliseconds.  Assuming that my machine is operating at a speed much higher than 1Mhz how do I set the default resolution to something better than 10 ms?  My Visual C on my laptop at least gives me 1ms resolution.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rick</description>
      <pubDate>Thu, 25 Jan 2001 18:38:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-clock-resolution/m-p/2486796#M18941</guid>
      <dc:creator>Rick Burge</dc:creator>
      <dc:date>2001-01-25T18:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Default clock resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-clock-resolution/m-p/2486797#M18942</link>
      <description>clock(3c) is just a wrapper for times(2). Have a look at times(2) as that looks like it's in ticks (which is cpu dependent).&lt;BR /&gt;&lt;BR /&gt;Or you look at pstat() which can get the same, but probably has too much overhead.&lt;BR /&gt;&lt;BR /&gt;Andy</description>
      <pubDate>Fri, 26 Jan 2001 09:50:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-clock-resolution/m-p/2486797#M18942</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2001-01-26T09:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Default clock resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-clock-resolution/m-p/2486798#M18943</link>
      <description>Thanks much for you reply... I had previously looked at this as an alternative only to discover that while it references a different definitions - CLK_TCK, it too is providing a 10ms resolution.  What got me started on my question was the comment in clock() that indicates CLOCKS_PER_SECOND is defaulted at 10ms.  This implies to me that perhaps the tick resolution could be set to a different value (within limits of course) by some system configuration parameter. &lt;BR /&gt;&lt;BR /&gt;Ciao,&lt;BR /&gt;Rick</description>
      <pubDate>Fri, 26 Jan 2001 20:21:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-clock-resolution/m-p/2486798#M18943</guid>
      <dc:creator>Rick Burge</dc:creator>
      <dc:date>2001-01-26T20:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Default clock resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-clock-resolution/m-p/2486799#M18944</link>
      <description>Looking at the time.h header file, you can see :-&lt;BR /&gt;&lt;BR /&gt;#ifndef&lt;BR /&gt;   #define CLOCKS_PER_SEC 1000000&lt;BR /&gt;&lt;BR /&gt;Therefore, it looks like you might be able to override the value with your own.&lt;BR /&gt;&lt;BR /&gt;Worth a try.</description>
      <pubDate>Sat, 27 Jan 2001 08:25:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-clock-resolution/m-p/2486799#M18944</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2001-01-27T08:25:07Z</dc:date>
    </item>
  </channel>
</rss>

