Use duration rather than frame counts.  Stops false detection of being "...

...stuck" with high frame rates (e.g. indoors).