Use milliseconds in timestamp

With possibility to parameterize number of bytes (only tested with 6 though)