title: Increment variable by X every second
body: <p>Am stuck at this section in code.
  I want a int variable to increase by X every second till (variable&lt;=required number).
  Please guide me.</p>
  
  <p>Edit //
  I am having a variable 'i'.
  And I want its max value to be say.. 280
  I want to perform increment function on variable so that every second value of 'i' increases by 1 till (i=280)</p>