interrupt in esp8266

hi,

I like to check the button weather it is pressed for 5 second or not by using interrupt..

thank you

An unusual request, but permission granted.
Go ahead.

hi,
thanks for the replay.....what i am trying to say is.... when i pressed button for 5 seconds then i need interrupt want to occur

Detect when the button becomes pressed.
Note the time.

If the time now minus the noted time is greater than or equal to 5000 milliseconds, do your thing.