Fixed time stamp bug.

Time stamp nano-seconds were not well calculated.