def ms_since_change(self, switch_name):
        """Returns the number of ms that have elapsed since this switch
        last changed state.
        """

        return (time.time() - self.switches[switch_name]['time']) * 1000.0
dataset/ETHPy150Open missionpinball/mpf/mpf/system/switch_controller.py/SwitchController.ms_since_change/original