Improve time tracking overheads a bit
We are performing unneeded computation when we are rescheduling
the keepalive timer:
- we always convert the keepAlive timer from seconds to nanos
when checking expiry
- we are forcing netty to translate seconds to nanos again when
we are re-scheduling the timer
- we end up doing a superfluous addition, which then undone when
we are computing the next duration
This normalizes all the timer delays to nanoseconds, so we
eliminate these inefficiencies.
JIRA: BGPCEP-872
Change-Id: Ic5912020a1cfa0df4fc6d4cf401d846cd9140ee4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
7fbf2d3b2ef7b03fab9208e03a27e053acd415e2)