def to_ms(s):
    """ Convert from seconds to milliseconds.

        Args:
            s (float, int): Value in seconds.

        Returns:
            int: Value in milliseconds.
    """
    return int(s * 1000.0)
