So I would not recommend (again) to use esp8266 for timing-critical tasks on microsecond level. I've seen several people that tried and failed...
This another world than microcontroller programmers are used to. The hardware is no longer exclusive for the user program and the user program needs to co-exist / run together with the SDK/WLAN code.