@Marko Ilic Thanks for reaching out. when using log to EventHub policy APIM does not send events instantly. Messages are queued in memory and are flushed every about ~15 seconds. This is not configurable. so, 15-20 second delay is to be expected.
If you want to send instantaneous notification somewhere, you must consider using send-request policy.
do let me know incase of further queries, I would be happy to assist you.
Please accept as Yes if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.