import wiringpi wiringpi.wiringPiSetupPhys() while True : wiringpi.delay(500) instant=wiringpi.millis() print instant