aboutsummaryrefslogtreecommitdiffstats
path: root/erts/example/time_compat.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-08-30 16:36:02 +0200
committerSverker Eriksson <[email protected]>2016-08-30 16:36:02 +0200
commitb532d464577ab7efbd3d7075ca90175c973d315e (patch)
treec8ee85f8cb381c6e719f83a867fed9a927481924 /erts/example/time_compat.erl
parent0caa1d3cda20a87b33dbb1805c30315bee7b79a8 (diff)
parent9f794b187208729728a3e5c11ed2e8f959174a5c (diff)
downloadotp-b532d464577ab7efbd3d7075ca90175c973d315e.tar.gz
otp-b532d464577ab7efbd3d7075ca90175c973d315e.tar.bz2
otp-b532d464577ab7efbd3d7075ca90175c973d315e.zip
Merge branch 'maint'
Diffstat (limited to 'erts/example/time_compat.erl')
-rw-r--r--erts/example/time_compat.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/example/time_compat.erl b/erts/example/time_compat.erl
index b87c6cc550..589781c8e8 100644
--- a/erts/example/time_compat.erl
+++ b/erts/example/time_compat.erl
@@ -272,6 +272,10 @@ system_flag(Flag, Value) ->
%%
integer_time_unit(native) -> 1000*1000;
+integer_time_unit(nanosecond) -> 1000*1000*1000;
+integer_time_unit(microsecond) -> 1000*1000;
+integer_time_unit(millisecond) -> 1000;
+integer_time_unit(second) -> 1;
integer_time_unit(nano_seconds) -> 1000*1000*1000;
integer_time_unit(micro_seconds) -> 1000*1000;
integer_time_unit(milli_seconds) -> 1000;