util.toMicroseconds functin