Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How to make an alarm clock
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
timothyleesnipe




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
jr5000pwp




PostPosted: 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.
Raknarg




PostPosted: Wed May 15, 2013 5:53 pm   Post subject: RE:How to make an alarm clock

Turing:

loop
    put Time.Date
    Time.DelaySinceLast (1000)
    cls
end loop


Yes
timothyleesnipe




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: