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. The Lounge
  3. MILLISEC_PER_SEC is never needed

MILLISEC_PER_SEC is never needed

Scheduled Pinned Locked Moved The Lounge
76 Posts 31 Posters 4 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.
  • L Lost User

    That's what I would think, as the SI-system is fairly logical. Then you meet someone from the UK and they tell you there's x feet in an inch. It's also a nice shortcut, to change the display from msec to sec, just by setting this constant to "0" instead of "1000" :p

    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

    J Offline
    J Offline
    Jochen Arndt
    wrote on last edited by
    #22

    Eddy Vluggen wrote:

    It's also a nice shortcut, to change the display from msec to sec, just by setting this constant to "0" instead of "1000" :p

    Depending on the usage you might then get a "Division by zero" exception / fatal error popup window instead.

    L 1 Reply Last reply
    0
    • L Lost User

      Yes I know. I was just messing with you. :)

      Get me coffee and no one gets hurt!

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #23

      Damn. I was hoping you knew of one! ;)

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      L J 2 Replies Last reply
      0
      • OriginalGriffO OriginalGriff

        Damn. I was hoping you knew of one! ;)

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #24

        :-D

        Get me coffee and no one gets hurt!

        1 Reply Last reply
        0
        • C Chris Maunder

          Personally I prefer cubits

          cheers Chris Maunder

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #25

          Is that cubits / Pirate-Ninja? Did you know there is a unit called the sheppey - about ​7⁄8 of a mile (1.4 km), defined as the closest distance at which sheep remain picturesque?

          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          C 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            Is that cubits / Pirate-Ninja? Did you know there is a unit called the sheppey - about ​7⁄8 of a mile (1.4 km), defined as the closest distance at which sheep remain picturesque?

            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

            C Offline
            C Offline
            Chris Maunder
            wrote on last edited by
            #26

            Must...refrain...from...New Zealand...joke....

            cheers Chris Maunder

            M 1 Reply Last reply
            0
            • L Lost User

              Chris Maunder wrote:

              MILLISEC_PER_SEC

              American or UK Seconds?

              Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004

              C Offline
              C Offline
              Chris Maunder
              wrote on last edited by
              #27

              Daylight Saving seconds.

              cheers Chris Maunder

              1 Reply Last reply
              0
              • P PIEBALDconsult

                Come to think of it, are there any milliseconds in a Leap Second?

                C Offline
                C Offline
                Chris Maunder
                wrote on last edited by
                #28

                It depends if you measure them or not.

                cheers Chris Maunder

                P 1 Reply Last reply
                0
                • C Chris Maunder

                  I put it to you that a variable, constant or define named "MILLISEC_PER_SEC" is never, ever, ever needed.

                  cheers Chris Maunder

                  W Offline
                  W Offline
                  W Balboos GHB
                  wrote on last edited by
                  #29

                  Check again - in France it may have an alternative value.* *After all, they don't have a word for 'seventy', 'eighty', or 'ninety'

                  Ravings en masse^

                  "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                  "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                  C 1 Reply Last reply
                  0
                  • C Chris Maunder

                    I put it to you that a variable, constant or define named "MILLISEC_PER_SEC" is never, ever, ever needed.

                    cheers Chris Maunder

                    W Offline
                    W Offline
                    W Balboos GHB
                    wrote on last edited by
                    #30

                    Or, perhaps it's needed to differentiate in regions where they use an Imperial Second instead of a regular one.

                    Ravings en masse^

                    "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                    "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                    P 1 Reply Last reply
                    0
                    • W W Balboos GHB

                      Check again - in France it may have an alternative value.* *After all, they don't have a word for 'seventy', 'eighty', or 'ninety'

                      Ravings en masse^

                      "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                      "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                      C Offline
                      C Offline
                      Chris Maunder
                      wrote on last edited by
                      #31

                      C'mon - quatre vingt dix rolls off the tongue! (and it's the reason I can only count to 69 in French when I'm drunk. The maths gets too hard)

                      cheers Chris Maunder

                      W J 2 Replies Last reply
                      0
                      • C Chris Maunder

                        C'mon - quatre vingt dix rolls off the tongue! (and it's the reason I can only count to 69 in French when I'm drunk. The maths gets too hard)

                        cheers Chris Maunder

                        W Offline
                        W Offline
                        W Balboos GHB
                        wrote on last edited by
                        #32

                        Chris Maunder wrote:

                        rolls off the tongue!

                        (why did you go there?) It brought to mind french cuisine, crawling off one's tongue (leaving a slime trail). I hadn't expected this type of treatment from you!

                        Ravings en masse^

                        "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                        "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                        1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          Hence the elipsis - I can't put a dot over a three reliably (there's no HTML overstrike-and-superscript tag that I know of)

                          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                          D Offline
                          D Offline
                          David Crow
                          wrote on last edited by
                          #33
                          \_\_
                          

                          0.0833

                          "One man's wage rise is another man's price increase." - Harold Wilson

                          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

                          Richard DeemingR 1 Reply Last reply
                          0
                          • L Lost User

                            And then the shoe-size is not measured in feet nor inches..

                            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                            Richard DeemingR Offline
                            Richard DeemingR Offline
                            Richard Deeming
                            wrote on last edited by
                            #34

                            Well, obviously; they're measured in barleycorns[^]. Everybody knows that! :laugh:


                            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                            "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                            P 1 Reply Last reply
                            0
                            • D David Crow
                              \_\_
                              

                              0.0833

                              "One man's wage rise is another man's price increase." - Harold Wilson

                              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                              "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

                              Richard DeemingR Offline
                              Richard DeemingR Offline
                              Richard Deeming
                              wrote on last edited by
                              #35

                              Or the simpler option: 0.0833 (Assuming the hamsters don't eat the style.)


                              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                              "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                              D 1 Reply Last reply
                              0
                              • C Chris Maunder

                                I put it to you that a variable, constant or define named "MILLISEC_PER_SEC" is never, ever, ever needed.

                                cheers Chris Maunder

                                C Offline
                                C Offline
                                Chris Losinger
                                wrote on last edited by
                                #36

                                protects against people who see "Milli-" and think "1,000,000"

                                image processing toolkits | batch image processing

                                1 Reply Last reply
                                0
                                • Richard DeemingR Richard Deeming

                                  Or the simpler option: 0.0833 (Assuming the hamsters don't eat the style.)


                                  "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                  D Offline
                                  D Offline
                                  David Crow
                                  wrote on last edited by
                                  #37

                                  Yeah, overline works too.

                                  "One man's wage rise is another man's price increase." - Harold Wilson

                                  "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                                  "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

                                  1 Reply Last reply
                                  0
                                  • C Chris Maunder

                                    It depends if you measure them or not.

                                    cheers Chris Maunder

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

                                    I can't be bothered with such fiddling small change.

                                    1 Reply Last reply
                                    0
                                    • C Chris Maunder

                                      Must...refrain...from...New Zealand...joke....

                                      cheers Chris Maunder

                                      M Offline
                                      M Offline
                                      Maximilien
                                      wrote on last edited by
                                      #39

                                      Oh please !!! DO IT!

                                      I'd rather be phishing!

                                      1 Reply Last reply
                                      0
                                      • C Chris Maunder

                                        C'mon - quatre vingt dix rolls off the tongue! (and it's the reason I can only count to 69 in French when I'm drunk. The maths gets too hard)

                                        cheers Chris Maunder

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

                                        It's easier in Switzerland, they use septante, octante, nonante instead of soixante-dix, quatre-vingts, quatre-vingt-dix. In Belgium they use some bastardised version with septante, quatre-vingt, nonante IIRC.

                                        Wrong is evil and must be defeated. - Jeff Ello

                                        1 Reply Last reply
                                        0
                                        • J Jochen Arndt

                                          Eddy Vluggen wrote:

                                          It's also a nice shortcut, to change the display from msec to sec, just by setting this constant to "0" instead of "1000" :p

                                          Depending on the usage you might then get a "Division by zero" exception / fatal error popup window instead.

                                          L Offline
                                          L Offline
                                          Lost User
                                          wrote on last edited by
                                          #41

                                          Call it a feature? ;P

                                          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                                          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