Fixed bug in msToTv (pass timeval by reference)