aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_time.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2016-01-19 17:05:55 +0100
committerRickard Green <[email protected]>2016-01-21 15:10:09 +0100
commit3f33428db9aea0d767295322c4e882a5c6bbf7db (patch)
tree331741cf9e941f15f689f790d0f2e354450bf25b /erts/emulator/beam/erl_time.h
parentdc8e62f33ad0ca7a772ec74d67b6d3e157f639b4 (diff)
downloadotp-3f33428db9aea0d767295322c4e882a5c6bbf7db.tar.gz
otp-3f33428db9aea0d767295322c4e882a5c6bbf7db.tar.bz2
otp-3f33428db9aea0d767295322c4e882a5c6bbf7db.zip
Introduce time management in native APIs
Diffstat (limited to 'erts/emulator/beam/erl_time.h')
-rw-r--r--erts/emulator/beam/erl_time.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_time.h b/erts/emulator/beam/erl_time.h
index 43e543e035..93a0d556bf 100644
--- a/erts/emulator/beam/erl_time.h
+++ b/erts/emulator/beam/erl_time.h
@@ -133,6 +133,10 @@ typedef struct {
extern ErtsTimeSupData erts_time_sup__;
+ErtsMonotonicTime erts_napi_monotonic_time(int time_unit);
+ErtsMonotonicTime erts_napi_time_offset(int time_unit);
+ErtsMonotonicTime erts_napi_convert_time_unit(ErtsMonotonicTime val, int from, int to);
+
ERTS_GLB_INLINE Uint64
erts_time_unit_conversion(Uint64 value,
Uint32 from_time_unit,