time: add a convenience function, nsec()

Simple inline, but it's handy.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>