Hello, my name is Brad and I am a student at Suny Plattsburgh. and Python programming is a course I am taking this semester. I find it a bit of a challenge doing all the chapter programming exercises that are assigned. We are currently in chapter 8 but some of the basics have not completely sunk in yet. This is extra hard for me because my learning capacity isn't what it used to be, 4 years ago I was in a motorcycle accident in which I sustained a traumatic brain injury and lost my left leg .The TBI affects my ability to remember short term things and my cognitive abilities are a bit off to say the least.
If what I write seems a bit off """"Please bear with me.. I need help completing my exercises, and do work very hard to absorb this material. Thank you, Brad From: tutor-bounces+outsideme99=live....@python.org [mailto:tutor-bounces+outsideme99=live....@python.org] On Behalf Of michael scott Sent: Thursday, April 21, 2011 12:38 AM To: tutor@python.org Subject: [Tutor] python timers Hello how do you do. Today's question has to do with the time module. I want to add a timer to my gui. As I was messing around with it I found a way to measure time... but I'm positive there is a more elegant way to deal with this than what I've thrown together. def thing(): start = time.time() while 1: now = time.time() if now == start + 10.0: print "times up" How are timers usually implemented? By the way, I'm not really asking as much about the how (because I could throw something together that will serve my purpose), I'm asking more about conventions, like is there a standard way people implement timers, like does python come with one built in? Does every programmer who wants a timer write a different one? ---- What is it about you... that intrigues me so?
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor