aboutsummaryrefslogtreecommitdiffstats
path: root/erts/example/time_compat.erl
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2016-08-30 16:25:00 +0200
committerRickard Green <[email protected]>2016-08-30 16:25:00 +0200
commit925984e94f2c1933bb659dfb626c191982b7c8d4 (patch)
treed1c5bec6861970d2c7e0d8090d39d8e77c2d4616 /erts/example/time_compat.erl
parentd419ca5917d4d27afe0518e5e5c444af5b11f480 (diff)
parentfc85e401ee279cc3b69635a71ffa93544ce5b99d (diff)
downloadotp-925984e94f2c1933bb659dfb626c191982b7c8d4.tar.gz
otp-925984e94f2c1933bb659dfb626c191982b7c8d4.tar.bz2
otp-925984e94f2c1933bb659dfb626c191982b7c8d4.zip
Merge branch 'rickard/time-unit/OTP-13735' into maint
* rickard/time-unit/OTP-13735: Update test-cases to use new symbolic time units Replace misspelled symbolic time units Conflicts: erts/doc/src/erlang.xml erts/emulator/test/long_timers_test.erl
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;