tor-browser

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

pr_now.rst (626B)


      1 PR_Now
      2 ======
      3 
      4 Returns the current time.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prtime.h>
     13 
     14   PRTime PR_Now(void);
     15 
     16 
     17 Parameters
     18 ~~~~~~~~~~
     19 
     20 None.
     21 
     22 
     23 Returns
     24 ~~~~~~~
     25 
     26 The current time as a :ref:`PRTime` value.
     27 
     28 
     29 Description
     30 -----------
     31 
     32 ``PR_Now()`` returns the current time as number of microseconds since
     33 the NSPR epoch, which is midnight (00:00:00) 1 January 1970 UTC.
     34 
     35 You cannot assume that the values returned by ``PR_Now()`` are
     36 monotonically increasing because the system clock of the computer may be
     37 reset. To obtain monotonically increasing time stamps suitable for
     38 measuring elapsed time, use ``PR_IntervalNow()``.