I have one wire that pullUpDnControl(button_pin, PUD_UP); in raspberry gpio pin ,I want if connect to gpio pin and then connect ground pin (like button)do something if in <10000 millisecond wire connect and do something else if in >10000 millisecond wire connect,I write this code but doesn't change ...