Computer Science Canada

Is it possible to add every minute

Author:  mew123mew [ 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?

Author:  Insectoid [ Tue Feb 24, 2015 4:45 pm ]
Post subject:  RE:Is it possible to add every minute

Sure, it's possible.

Author:  mew123mew [ Tue Feb 24, 2015 5:07 pm ]
Post subject:  Re: Is it possible to add every minute

Do you know how?

Author:  Tony [ 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.


: