From 412b5aaa5810cbac75ef41d29a36898ff1480129 Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Wed, 24 Aug 2016 11:46:34 +0200 Subject: Replace misspelled symbolic time units Besides using two words for 'milliseconds' et. al. they are also changed from plural to singular. --- erts/doc/src/erlang.xml | 53 ++++++++++++++++++++++++++++++++++++------------- 1 file changed, 39 insertions(+), 14 deletions(-) (limited to 'erts/doc') diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index 6289f033b2..e06ad461d8 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -70,26 +70,26 @@ -

- Supported time unit representations:

+ +

Supported time unit representations:

PartsPerSecond :: integer() >= 1

Time unit expressed in parts per second. That is, the time unit equals 1/PartsPerSecond second.

- seconds + second

Symbolic representation of the time unit represented by the integer 1.

- milli_seconds + millisecond

Symbolic representation of the time unit represented by the integer 1000.

- micro_seconds + microsecond

Symbolic representation of the time unit represented by the integer 1000000.

- nano_seconds + nanosecond

Symbolic representation of the time unit represented by the integer 1000000000.

@@ -108,7 +108,7 @@

One can get an approximation of the native time unit by calling erlang:convert_time_unit(1, - seconds, native). The result equals the number + second, native). The result equals the number of whole native time units per second. In case the number of native time units per second does not add up to a whole number, the result is rounded downwards.

@@ -138,8 +138,12 @@ as the native time unit. That is it might differ inbetween run-time restarts. You get values of this type by calling os:perf_counter() -

- +

+ + deprecated_time_unit() +

+ Deprecated symbolic representations kept for backwards-compatibility. +

@@ -149,6 +153,27 @@
+ + + +

The time_unit() + type also consist of the following deprecated symbolic + time units:

+ + seconds +

Same as second.

+ + milli_seconds +

Same as millisecond.

+ + micro_seconds +

Same as microsecond.

+ + nano_seconds +

Same as nanosecond.

+
+
+
@@ -8284,7 +8309,7 @@ ok Erlang monotonic time. The time-stamp (Ts) has the same format and value as produced by - erlang:monotonic_time(nano_seconds).

+ erlang:monotonic_time(nanosecond).

runnable_procs @@ -8312,7 +8337,7 @@ ok Erlang monotonic time and a monotonically increasing integer. The time-stamp (Ts) has the same format and value - as produced by {erlang:monotonic_time(nano_seconds), + as produced by {erlang:monotonic_time(nanosecond), erlang:unique_integer([monotonic])}.

timestamp @@ -8525,7 +8550,7 @@ ok

The erlang:timestamp() BIF is equivalent to:

timestamp() -> - ErlangSystemTime = erlang:system_time(micro_seconds), + ErlangSystemTime = erlang:system_time(microsecond), MegaSecs = ErlangSystemTime div 1000000000000, Secs = ErlangSystemTime div 1000000 - MegaSecs*1000000, MicroSecs = ErlangSystemTime rem 1000000, @@ -8762,7 +8787,7 @@ timestamp() -> Erlang monotonic time time-stamp in all trace messages. The time-stamp (Ts) has the same format and value as produced by - erlang:monotonic_time(nano_seconds). + erlang:monotonic_time(nanosecond). This flag overrides the cpu_timestamp flag.

strict_monotonic_timestamp @@ -8772,7 +8797,7 @@ timestamp() -> monotonic time and a monotonically increasing integer in all trace messages. The time-stamp (Ts) has the same format and value as produced by - {erlang:monotonic_time(nano_seconds), + {erlang:monotonic_time(nanosecond), erlang:unique_integer([monotonic])}. This flag overrides the cpu_timestamp flag.

-- cgit v1.2.3