summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_intervaltoseconds.rst
blob: 16d77f0adebb36c4e8629d104fb153ddaff44804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PR_IntervalToSeconds
====================

Converts platform-dependent intervals to standard clock seconds.


Syntax
------

.. code::

    #include <prinrval.h>

    PRUint32 PR_IntervalToSeconds(PRIntervalTime ticks);


Parameter
~~~~~~~~~

``ticks``
   The number of platform-dependent intervals to convert.


Returns
~~~~~~~

Equivalent in seconds of the value passed in the ``ticks`` parameter.


Description
-----------

Conversion may cause overflow, which is not reported.