1. import timeit
  2. from Tkinter import Tk
  3.  
  4. root=Tk()
  5. root.overrideredirect(True)
  6. root.geometry("{0}x{1}+0+0".format(root.winfo_screenwidth(),root.winfo_screenheight()))
  7. def conf():
  8.   root.configure(background='red')
  9. print(timeit.Timer(stmt=conf).timeit(1))
  10. root.mainloop()