Time calculation

I want to calculate the time frame between two sensors activation. Is there any method available with ardruino.? Thanks.

Google Arduino millis. Or Arduino micros.

these issues you'll have to google to find out answers