@property
    def duration(self):
        if self.waveform is None or self.sampling_rate is None:
            return None
        return self.waveform.shape[1] / self.sampling_rate
Returns the duration of the :attr:`waveform`.
dataset/ETHPy150Open NeuralEnsemble/python-neo/neo/core/spike.py/Spike.duration