Computer Science Canada How to make an alarm clock |
Author: | timothyleesnipe [ Wed May 15, 2013 9:46 am ] |
Post subject: | How to make an alarm clock |
Hey guys we can use the ( timeOfDay) feature on turing to ecract the time from the computer into our program, however it stays the same it does not move forward like a clock. how do we make it into an actual fully operating clock? better yet an alarm clock thae need for a comp sci project? please and thank you lol |
Author: | jr5000pwp [ Wed May 15, 2013 10:45 am ] |
Post subject: | Re: How to make an alarm clock |
timothyleesnipe wrote: however it stays the same it does not move forward like a clock What do you mean by this? If you are only getting the value once then of course it's not going to change on you. Look into loops: http://compsci.ca/holtsoft/doc/loop.html and delays: http://compsci.ca/holtsoft/doc/time_delaysincelast.html
It appears as if this document: http://compsci.ca/holtsoft/doc/time_date.html shows you how to get the time portion of the date, combine the 3 things I linked and you have a clock. |
Author: | Raknarg [ Wed May 15, 2013 5:53 pm ] | ||
Post subject: | RE:How to make an alarm clock | ||
Yes |
Author: | timothyleesnipe [ Thu May 16, 2013 8:53 am ] |
Post subject: | Re: How to make an alarm clock |
sorry man im used to generators in java (netbeans) lol i just thought the feature applied for turing too |