1. #1

    Bet you can't...

    I'm looking for an app that can count to x number in y time. Is anyone familiar with something like that?

  2. #2
    you mean a stopwatch?

  3. #3
    The Insane Kujako's Avatar
    10+ Year Old Account
    Join Date
    Oct 2009
    Location
    In the woods, doing what bears do.
    Posts
    17,987
    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-

  4. #4
    So, a metronome? Combined with a stopwatch?
    MY X/Y POKEMON FRIEND CODE: 1418-7279-9541 In Game Name: Michael__

  5. #5
    The Patient
    10+ Year Old Account
    Join Date
    May 2011
    Location
    Southern California
    Posts
    285
    Quote Originally Posted by Symphonic View Post
    So, a metronome? Combined with a stopwatch?
    Really just a metronome. It's just that all the ones I've seen are standardized to count in beats per minute. So if you want to use some other arbitrary interval, you'd have to do some math to convert to beats per minute.

  6. #6
    Quote Originally Posted by Tirivaria View Post
    Really just a metronome. It's just that all the ones I've seen are standardized to count in beats per minute. So if you want to use some other arbitrary interval, you'd have to do some math to convert to beats per minute.
    Simple math.

    Or a couple lines of code to do it for arbitrary intervals smaller than a metronome can do.

    Let's all ride the Gish gallop.

  7. #7
    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.

  8. #8
    Is this a homework project?

    Let's all ride the Gish gallop.

  9. #9
    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.

  10. #10
    The Unstoppable Force Puupi's Avatar
    15+ Year Old Account
    Join Date
    Jan 2009
    Location
    Finland
    Posts
    23,402
    Quote Originally Posted by belfpala View Post
    Is this a homework project?
    I'm starting to think it is. And the question/problem is "how often do you need to do X so you can do it 1000 times in 6 hours?".

    And this is the way he thought of solving the problem, instead of just calculating it.
    Quote Originally Posted by derpkitteh View Post
    i've said i'd like to have one of those bad dragon dildos shaped like a horse, because the shape is nicer than human.
    Quote Originally Posted by derpkitteh View Post
    i was talking about horse cock again, told him to look at your sig.

  11. #11
    The Insane Kujako's Avatar
    10+ Year Old Account
    Join Date
    Oct 2009
    Location
    In the woods, doing what bears do.
    Posts
    17,987
    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-

  12. #12
    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.

  13. #13
    Merely a Setback Reeve's Avatar
    10+ Year Old Account
    Join Date
    Oct 2009
    Location
    Houston, TX USA
    Posts
    28,800
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •