I'm trying to see how recently an Event
occurred (so that I can ignore the backlog of events that built up while a first event is being processed.) I see that events have a time
attribute in milliseconds, but it doesn't line up with the system time I get from calling time.time()
. Does anyone know how to convert between the two? Thanks!
Example
from Tkinter import Tk, Label
from time import time
def print_fn(event): print event.time, time()
app = Tk()
label = Label(app, text='Click Here!')
label.bind('<Button>', print_fn)
label.pack()
app.mainloop()
Output
1430467703 1360190553.41