XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 52

Thread: [Update] XenoBot Apophis v14.8.12.751 [Preview 10.52]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #35
    Senior Member pixie_frigo's Avatar
    Join Date
    Dec 2012
    Location
    Ghent, Belgium
    Posts
    458
    Mentioned
    38 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    It's not steps of 100 MS, it just cant be below 100 MS. So, if it's below 100, it turns into 100. Else, it sleeps the specified time.
    Are you sure about that ? :P Did some tests:

    wait(150,200) sleeps 100.0% for 200 ms and 0.0% for 0ms (993tests)
    wait(150,210) sleeps 82.4% for 200 ms and 17.7% for 300ms (998tests)
    wait(150,220) sleeps 70.2% for 200 ms and 29.8% for 300ms (1000tests)
    wait(150,230) sleeps 62.8% for 200 ms and 37.2% for 300ms (1000tests)
    wait(150,240) sleeps 56.9% for 200 ms and 43.1% for 300ms (1000tests)
    wait(150,250) sleeps 51.6% for 300 ms and 48.5% for 200ms (996tests)
    wait(150,260) sleeps 54.6% for 300 ms and 45.4% for 200ms (1000tests)
    wait(150,270) sleeps 56.4% for 300 ms and 43.7% for 200ms (999tests)
    wait(150,280) sleeps 60.9% for 300 ms and 39.1% for 200ms (1000tests)
    wait(150,290) sleeps 62.7% for 300 ms and 37.3% for 200ms (1000tests)
    wait(150,300) sleeps 63.3% for 300 ms and 36.7% for 200ms (1000tests)

    and:

    sleep(100) sleeps 78.3% for 100 ms and 8.7% for 102ms (69tests)
    sleep(110) sleeps 81.0% for 200 ms and 5.0% for 203ms (100tests)
    sleep(120) sleeps 65.0% for 200 ms and 15.0% for 201ms (100tests)
    sleep(130) sleeps 74.0% for 200 ms and 11.0% for 201ms (100tests)
    sleep(140) sleeps 69.0% for 200 ms and 20.0% for 201ms (100tests)
    sleep(150) sleeps 76.0% for 200 ms and 8.0% for 201ms (100tests)
    sleep(160) sleeps 67.0% for 200 ms and 15.0% for 201ms (100tests)
    sleep(170) sleeps 76.0% for 200 ms and 19.0% for 201ms (100tests)
    sleep(180) sleeps 74.0% for 200 ms and 12.0% for 201ms (100tests)
    sleep(190) sleeps 64.0% for 200 ms and 12.0% for 202ms (100tests)


    I dunno if this is new ! else i would explain the deletion spree im on

    Just try it yourself their must be a math.ceil in your c thing!

    lua code:

    for i = 1, 10 do
    local n = i*10 + 100
    local s = os.clock()
    for j = 1, 10 do
    sleep(n)
    end
    print((os.clock() - s)*100)
    end
    Last edited by pixie_frigo; 08-20-2014 at 08:41 PM.

Posting Permissions

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