Your inclusion of an RTC makes your question unclear. Is this interrupt supposed to come from the RTC or internally from the Arduino?
If the former, you can look in the RTC's datasheet. I know some can give you a 1-second signal that can be used as an interrupt. I'm doubtful about the availability of a 27ms period pulse.
So, you'll probably have to use one of the chip's internal timers (you didn't say, I'm assuming you're using an Arduino Uno). Try Timer 1. Read about it in Chapter 16 of the ATMega328P datasheet that you can download here.
Using an RTC is only required for absolute timing - relative to the ‘real’ time of day.
What you’re doing is creating a pulse relative to the previous pulse, no external reference to a global time reference is needed.
Setting up a hardware ‘timer’ (not a ‘clock,’), once, then using its output will be by far the tidiest way to approach this.
You need ‘tick - tick - tick...’, NOT ‘08:03.37.200 - 08:03.37.227 - 08:03.37.254...’
Get the TimerOne library and it will do all the work for you. If you want to understand what it is doing, just look in the library about what registers, etc. it is setting.