Commit 543dabb6 authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

timers: improve Timer.now() performance

Record the start time so we can make the return value of Timer.now()
relative to it, increasing the chances that it fits in a tagged integer
instead of a heap-allocated double, at least for the first one or two
billion milliseconds.

PR-URL: https://github.com/nodejs/io.js/pull/2256


Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
parent 3663b124
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment