In the specific case of modifying one file only, multiple times, you could get away with one register for the original modification timestamp, and then compare that timestamp with the current timestamp as your last operation.
In the general case, I think you need to use a register with a boolean for each operation that can trigger your final action.