Elapsed event time using RTC

Posting code would definitely save time and prevent confusion.

Best would be to write a simple stand alone piece of code which reproduces the problem.

You would not be the first forum user to find the solution when you were doing that.