There are a couple of ways you could tackle this problem.
If you know which order you expect the two events to occur, you can use a simple blocking approach. This is simplest to understand but gives you a fairly restrictive solution. Restructure your code so that it works like this:
Wait for first input event to occur.
Record time of first event.
Wait for second input event to occur.
Record time of second event.
Do any calculations you need from these times.
Wait long enough for both sensors to have returned to idle state.
The second approach is to use a non-blocking approach. This is a bit more complicated but gives you a much more powerful solution. With this approach you would poll both inputs, and use the sort of logic demonstrated in the debounce example sketch to ignore subsequent changes in the input until it had settled.