Get if another script has been edited

I’m working on an dynamic inspector editor.
To improve the performance, I’m doing some preprocessing (analysing the script).
Because I want to do this preprocessing only when the attached script has been changed, I need to know, if this script has been changed since the last time.

My question:
Is there a way to determine if the script file has been changed or not?


Take a look at the AssetPostProcessor