Fixation cross duration various duration

Someone on an other forum got the answer. Thanks to @lindeloev I put it here if it can help someone.
That’s his reply :
"In your ‘trial’ routine, I would record the routine starting time. Then in the ‘fixation’ routine, I would wait until 3 secs have passed since that starting time.

So in ‘trial’ routine --> Code Component --> ‘begin trial’ tab:

trial_start = core.monotonicClock.getTime()

Then in the ‘fixation’ routine --> fixation cross component --> duration, enter:

$trial_start + 3 - core.monotonicClock.getTime()  # 3 secs later "