Checks time interval since last threshold crossing.  Crashes at runtime