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

Username:   Password: 
 RegisterRegister   
 Is it possible to add every minute
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mew123mew




PostPosted: Tue Feb 24, 2015 4:32 pm   Post subject: Is it possible to add every minute

What i want to do is have a variable the initial value is 0 but i want to be able to add 1 to it every minute. Is that possible in Turing?
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Tue Feb 24, 2015 4:45 pm   Post subject: RE:Is it possible to add every minute

Sure, it's possible.
mew123mew




PostPosted: Tue Feb 24, 2015 5:07 pm   Post subject: Re: Is it possible to add every minute

Do you know how?
Tony




PostPosted: Tue Feb 24, 2015 5:15 pm   Post subject: RE:Is it possible to add every minute

code:

loop
  % do stuff
  if ( about_1_minute_has_passed) then
    % do your counter
  ...
...
end loop


timemodule is useful.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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: