
-----------------------------------
mew123mew
Tue Feb 24, 2015 4:32 pm

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?

-----------------------------------
Insectoid
Tue Feb 24, 2015 4:45 pm

RE:Is it possible to add every minute
-----------------------------------
Sure, it's possible.

-----------------------------------
mew123mew
Tue Feb 24, 2015 5:07 pm

Re: Is it possible to add every minute
-----------------------------------
Do you know how?

-----------------------------------
Tony
Tue Feb 24, 2015 5:15 pm

RE:Is it possible to add every minute
-----------------------------------
[code]
loop
  % do stuff
  if ( about_1_minute_has_passed) then
    % do your counter
  ...
...
end loop
[/code]

[tdoc]timemodule[/tdoc] is useful.
