ATTiny, Counting with interupts

I think you would need to use the internal (1.1v?) reference for the ADC when measuring the device's own battery voltage.

The battery voltage indication may be a mixed blessing if used with non-rechargeable batteries. Should you design the threshold so that "good" batteries are discarded or set it lower with a risk of failure in service? Yours is not a safety critical project.

...R