Make last sample time local to a method.