summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_nsec_per_msec.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/nspr/reference/pr_nsec_per_msec.rst')
-rw-r--r--docs/nspr/reference/pr_nsec_per_msec.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/nspr/reference/pr_nsec_per_msec.rst b/docs/nspr/reference/pr_nsec_per_msec.rst
new file mode 100644
index 0000000000..8d471bd300
--- /dev/null
+++ b/docs/nspr/reference/pr_nsec_per_msec.rst
@@ -0,0 +1,16 @@
+PR_NSEC_PER_MSEC
+================
+
+A convenience macro to improve code readability as well as to avoid
+mistakes in counting the number of zeros; represents the number of
+nanoseconds in a millisecond.
+
+
+Syntax
+------
+
+.. code::
+
+ #include <prtime.h>
+
+ #define PR_NSEC_PER_MSEC 1000000UL