diff options
author | Dan Gudmundsson <[email protected]> | 2015-02-03 09:56:49 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2015-03-20 15:28:53 +0100 |
commit | d6c23051e42928099fdcad4199bc89503ca6f2d9 (patch) | |
tree | 8138c8c3fd895bc9d8d789d969791f1e6c5dcef2 /lib/tools/src/eprof.erl | |
parent | 469e8f285f39218dfe0800b4df1c91739267c23c (diff) | |
download | otp-d6c23051e42928099fdcad4199bc89503ca6f2d9.tar.gz otp-d6c23051e42928099fdcad4199bc89503ca6f2d9.tar.bz2 otp-d6c23051e42928099fdcad4199bc89503ca6f2d9.zip |
Replace usage of erlang:now() with usage of new API
Diffstat (limited to 'lib/tools/src/eprof.erl')
-rw-r--r-- | lib/tools/src/eprof.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tools/src/eprof.erl b/lib/tools/src/eprof.erl index bfbbefb473..a3fef91e61 100644 --- a/lib/tools/src/eprof.erl +++ b/lib/tools/src/eprof.erl @@ -187,7 +187,7 @@ handle_call({profile_start, Rootset, Pattern, {M,F,A}, Opts}, From, #state{fd = case set_process_trace(true, [Pid|Rootset], Topts) of true -> ok = set_pattern_trace(true, Pattern), - T0 = now(), + T0 = erlang:timestamp(), ok = execute_profiling(Pid), {noreply, #state{ profiling = true, @@ -211,7 +211,7 @@ handle_call({profile_start, Rootset, Pattern, undefined, Opts}, From, #state{ fd case set_process_trace(true, Rootset, Topts) of true -> - T0 = now(), + T0 = erlang:timestamp(), ok = set_pattern_trace(true, Pattern), {reply, profiling, #state{ profiling = true, |