Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Quick Nap

Quick Nap

Scheduled Pinned Locked Moved The Weird and The Wonderful
17 Posts 16 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Pascal Ganaye

    Thread.Sleep(3000); // wait a minute

    C Offline
    C Offline
    Chris Meech
    wrote on last edited by
    #6

    The comment has been truncated. I think it originally read

    Thread.Sleep(3000); // wait a minute, let's slow things down a few seconds for no apparent reason.

    :)

    Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

    1 Reply Last reply
    0
    • P Pascal Ganaye

      Thread.Sleep(3000); // wait a minute

      B Offline
      B Offline
      BobJanova
      wrote on last edited by
      #7

      Optimisation opportunity? I've heard stories of people leaving those in so they can present a 'quick win' when they're under pressure.

      L 1 Reply Last reply
      0
      • B BobJanova

        Optimisation opportunity? I've heard stories of people leaving those in so they can present a 'quick win' when they're under pressure.

        L Offline
        L Offline
        Lutoslaw
        wrote on last edited by
        #8

        Yep, it was here on CP. A "performance loop" it was call or sth like this (for int i=0;i<10000000;i++)

        Greetings - Jacek

        1 Reply Last reply
        0
        • P Pascal Ganaye

          Thread.Sleep(3000); // wait a minute

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #9

          Pascal Ganaye wrote:

          Thread.Sleep(3000); // wait a minutejust a tick!

          FTFY, no, wait, that's not right either!

          Sort of a cross between Lawrence of Arabia and Dilbert.[^]
          -Or-
          A Dead ringer for Kate Winslett[^]

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            Perhaps the application is designed for use deep in a gravity well?

            Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

            A Offline
            A Offline
            aureliosjr
            wrote on last edited by
            #10

            That would work, because the people inside the gravity well would experience the passage of time normally. Only an outside observer would see time passing by slower inside the gravity well. :-D

            1 Reply Last reply
            0
            • L Lost User

              Would it not be a real horror to let the poor thread really sleep for one minute (= 0,00000134 dog years or 250000 processor years)?

              At least artificial intelligence already is superior to natural stupidity

              J Offline
              J Offline
              Jorgen Andersson
              wrote on last edited by
              #11

              I like the measure microfortnight personally.

              Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

              1 Reply Last reply
              0
              • P Pascal Ganaye

                Thread.Sleep(3000); // wait a minute

                S Offline
                S Offline
                spencepk
                wrote on last edited by
                #12

                Thread.Sleep(3000); // wait a minute 3-seconds

                1 Reply Last reply
                0
                • P Pascal Ganaye

                  Thread.Sleep(3000); // wait a minute

                  A Offline
                  A Offline
                  AspDotNetDev
                  wrote on last edited by
                  #13

                  Ah, I remember writing that when I wrote Sim City. Of course, Sim time is different than our time. A side effect of reticulated splines.

                  Thou mewling ill-breeding pignut!

                  1 Reply Last reply
                  0
                  • P Pascal Ganaye

                    Thread.Sleep(3000); // wait a minute

                    A Offline
                    A Offline
                    Albert Holguin
                    wrote on last edited by
                    #14

                    What is... thread synchronization for dummies? ;P

                    1 Reply Last reply
                    0
                    • P Pascal Ganaye

                      Thread.Sleep(3000); // wait a minute

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #15

                      That looks more like three shakes of a lamb's tail.

                      1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        Perhaps the application is designed for use deep in a gravity well?

                        Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                        K Offline
                        K Offline
                        krsmichael
                        wrote on last edited by
                        #16

                        Grrr....you beat me to the punch line!

                        1 Reply Last reply
                        0
                        • L Lost User

                          Would it not be a real horror to let the poor thread really sleep for one minute (= 0,00000134 dog years or 250000 processor years)?

                          At least artificial intelligence already is superior to natural stupidity

                          S Offline
                          S Offline
                          Steve Burchett
                          wrote on last edited by
                          #17

                          Every day, I work a micromillenium.

                          Just think of it as evolution in action.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups