tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pr_tickspersecond.rst (906B)


      1 PR_TicksPerSecond
      2 =================
      3 
      4 Returns the number of ticks per second currently used to determine the
      5 value of :ref:`PRIntervalTime`.
      6 
      7 
      8 Syntax
      9 ------
     10 
     11 .. code::
     12 
     13    #include <prinrval.h>
     14 
     15    PRUint32 PR_TicksPerSecond(void);
     16 
     17 
     18 Returns
     19 ~~~~~~~
     20 
     21 An integer between 1000 and 100000 indicating the number of ticks per
     22 second counted by :ref:`PRIntervalTime` on the current platform. This value
     23 is platform-dependent and does not change after NSPR is initialized.
     24 
     25 
     26 Description
     27 -----------
     28 
     29 The value returned by ``PR_TicksPerSecond()`` lies between
     30 ``PR_INTERVAL_MIN`` and ``PR_INTERVAL_MAX``.
     31 
     32 The relationship between a :ref:`PRIntervalTime` tick and standard clock
     33 units is platform-dependent. PR\_\ ``PR_TicksPerSecond()`` allows you to
     34 discover exactly what that relationship is. Seconds per tick (the
     35 inverse of PR\_\ ``PR_TicksPerSecond()``) is always between 10
     36 microseconds and 1 millisecond.