I'm looking for an app that can count to x number in y time. Is anyone familiar with something like that?
I'm looking for an app that can count to x number in y time. Is anyone familiar with something like that?
I think what he's asking for is an "app" (no idea what platform) that can be set to count to a given value over a given amount of time, making the intervals between iterations variable.
It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed, the hands acquire shakes, the shakes become a warning.
-Kujako-
So, a metronome? Combined with a stopwatch?
MY X/Y POKEMON FRIEND CODE: 1418-7279-9541 In Game Name: Michael__
I say "app," but really just any piece of Windows software or mobile app (let's say Android) that can count to a certain number in a given time period. For example, let's say I want it to count from 0 to 1000 in the space of 6 hours.
Last edited by Moonfaxx; 2014-04-30 at 06:39 PM.
Is this a homework project?
I could make that. I'm at school though and ehhhh. Seems like a hassle to have to make a WinForm for it. Actually I could probably generate an Android app pretty quickly.
What's it for? I'd consider making one to put on app store if it truly doesn't exist.
Btw thread title was bad and you should feel bad for attracting people that way.
Just use javascript and seIinterval(). http://www.w3schools.com/js/js_timing.asp
You would just need to calculate the iteration time in milliseconds. So if you want to count to 100 over 6 seconds that would be 6000 milliseconds divided by 100.
x=0;
window.setInterval(x++,60);
It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed, the hands acquire shakes, the shakes become a warning.
-Kujako-
This is not a homework project. It's more something I thought of, and I'd be shocked if it didn't already exist. I am not a programmer, however.
Here's my napkin VBA version:
Dim dur as Int
Dim num as Int
Dim interval as Double
Dim counter as Int
counter = 0
InputBox("Please enter the duration required in seconds:") = dur
InputBox("Please enter the whole number you wish to count to:") = num
Interval = dur / num
Do While counter <= num
counter = counter + 1
Debug.Print(counter)
Application.Wait(Now + TimeValue(interval))
Loop
'Twas a cutlass swipe or an ounce of lead
Or a yawing hole in a battered head
And the scuppers clogged with rotting red
And there they lay I damn me eyes
All lookouts clapped on Paradise
All souls bound just contrarywise, yo ho ho and a bottle of rum!