aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_trace.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2016-02-02 16:20:19 +0100
committerRickard Green <[email protected]>2016-02-02 16:20:19 +0100
commit18f0707c218ebdeb6024ecffd7704d3582e0b91c (patch)
treeddae22caf23f7cf4b6559b08ee6436d1f268caee /erts/emulator/beam/erl_trace.c
parent3f33428db9aea0d767295322c4e882a5c6bbf7db (diff)
downloadotp-18f0707c218ebdeb6024ecffd7704d3582e0b91c.tar.gz
otp-18f0707c218ebdeb6024ecffd7704d3582e0b91c.tar.bz2
otp-18f0707c218ebdeb6024ecffd7704d3582e0b91c.zip
Use nano second time unit in tracing
Diffstat (limited to 'erts/emulator/beam/erl_trace.c')
-rw-r--r--erts/emulator/beam/erl_trace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_trace.c b/erts/emulator/beam/erl_trace.c
index 2243639099..8a4c0ab1f2 100644
--- a/erts/emulator/beam/erl_trace.c
+++ b/erts/emulator/beam/erl_trace.c
@@ -165,7 +165,8 @@ take_timestamp(ErtsTraceTimeStamp *tsp, int ts_type)
case ERTS_TRACE_FLG_STRICT_MONOTONIC_TIMESTAMP: {
Uint hsz = 0;
ErtsMonotonicTime mtime = erts_get_monotonic_time(NULL);
- mtime += ERTS_MONOTONIC_OFFSET_NATIVE;
+ mtime = ERTS_MONOTONIC_TO_NSEC(mtime);
+ mtime += ERTS_MONOTONIC_OFFSET_NSEC;
hsz = (IS_SSMALL(mtime) ?
(Uint) 0
: ERTS_SINT64_HEAP_SIZE((Sint64) mtime));