Set timing rounding correctly
This commit is contained in:
parent
7147ec0470
commit
94436d8dfd
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ log_timer(LogReference, Subs, StartTime) ->
|
|||
true ->
|
||||
MicroS = timer:now_diff(os:timestamp(), StartTime),
|
||||
{Unit, Time} = case MicroS of
|
||||
MicroS when MicroS < 100 ->
|
||||
MicroS when MicroS < 10000 ->
|
||||
{"microsec", MicroS};
|
||||
MicroS ->
|
||||
{"ms", MicroS div 1000}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue