diff method

int diff()

Implementation

int diff() => durations.length == 2 ? (durations[1] - durations[0]) : 0;