This is probably a shot in the dark, as I suspect there's no workaround for this, but I thought I'd ask anyway...
I'm using the timer input trigger functionality on an STM8 microcontroller to try and generate a short pulse triggered on every falling edge of an SPI SCK (also coming from the MCU).
I have it wired up so that the SCK line is routed back (externally) to the pin for TIM1 CH1. I then have the timer set up with CH1 as an input which is mapped to TI1FP1, and set up to trigger on a falling edge. When it triggers it will reset the timer (i.e. zero the counter). TIM1 CH2 is then set up for PWM output, with a suitable compare value for a pulse length approx. 25% of the SCK clock period.
It works, but with one major exception: there is a (relatively) large amount of latency between the falling edge and the reset of the timer counter! (See logic analyser capture below.) There's about 290 ns of latency, which is longer than the damned pulse length I'm trying to generate (250 ns)!

Does anyone happen to know of any way to mitigate this delay? Any register flags I might have missed?
I have a feeling this latency is because the timer trigger is sampling the input for edge detection, rather than some other lower-latency means, evidenced by the fact the triggering can be configured to have filtering and prescaling (which I'm not using, of course).