nit: due to the function name I would generally expect this to return seconds, instead of milliseconds.