Finding rise time and amplitude

Use millis() or micros() for the time.