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. General Programming
  3. C / C++ / MFC
  4. BIOS Time

BIOS Time

Scheduled Pinned Locked Moved C / C++ / MFC
c++
9 Posts 6 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.
  • S Offline
    S Offline
    SamirSood
    wrote on last edited by
    #1

    Is there any Function in MFC through which i can get the bios time.;) Samir Sood

    T M 2 Replies Last reply
    0
    • S SamirSood

      Is there any Function in MFC through which i can get the bios time.;) Samir Sood

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      SamirSood wrote: Is there any Function in MFC through which i can get the bios time. You mean BIOS release date? :-D Tomasz Sowinski -- http://www.shooltz.com

      - It's for protection
      - Protection from what? Zee Germans?

      S 1 Reply Last reply
      0
      • T Tomasz Sowinski

        SamirSood wrote: Is there any Function in MFC through which i can get the bios time. You mean BIOS release date? :-D Tomasz Sowinski -- http://www.shooltz.com

        - It's for protection
        - Protection from what? Zee Germans?

        S Offline
        S Offline
        SamirSood
        wrote on last edited by
        #3

        What i exactly mean is that I want to get the current system time based on the BIOS time. Because if I change the system time through the Adjust time/date then the APIS such as GetCurrentTime will return the changed System time. What I want is that I want the correct time based on the time stored in BIOS or somewhere else which is intransient to the change in system time by the User. Thanks in Advance.:) Samir Sood

        T D 2 Replies Last reply
        0
        • S SamirSood

          What i exactly mean is that I want to get the current system time based on the BIOS time. Because if I change the system time through the Adjust time/date then the APIS such as GetCurrentTime will return the changed System time. What I want is that I want the correct time based on the time stored in BIOS or somewhere else which is intransient to the change in system time by the User. Thanks in Advance.:) Samir Sood

          T Offline
          T Offline
          Tomasz Sowinski
          wrote on last edited by
          #4

          So you're suggesting that changing time in Windows doesn't change BIOS time? Tomasz Sowinski -- http://www.shooltz.com

          - It's for protection
          - Protection from what? Zee Germans?

          1 Reply Last reply
          0
          • S SamirSood

            What i exactly mean is that I want to get the current system time based on the BIOS time. Because if I change the system time through the Adjust time/date then the APIS such as GetCurrentTime will return the changed System time. What I want is that I want the correct time based on the time stored in BIOS or somewhere else which is intransient to the change in system time by the User. Thanks in Advance.:) Samir Sood

            D Offline
            D Offline
            dazinith
            wrote on last edited by
            #5

            changing the clock in windows does change the bios time.. i think what he may be asking is if it is 9:35.. and 5 minutes later someone sets the clock to 9:36, how can he tell 5 minutes went by instead of 1.. is that what your asking? if so i would think you would have to monitor the time at a constant rate.. like have a thread that checks the clock every 30 seconds.. this 30 secods would be based of the speed of the system clock.. -dz

            S 1 Reply Last reply
            0
            • S SamirSood

              Is there any Function in MFC through which i can get the bios time.;) Samir Sood

              M Offline
              M Offline
              Mike Nordell
              wrote on last edited by
              #6

              SamirSood wrote: Is there any Function in MFC through which i can get the bios time. :-) No. :-) So, how is Win16-land nowadays?

              1 Reply Last reply
              0
              • D dazinith

                changing the clock in windows does change the bios time.. i think what he may be asking is if it is 9:35.. and 5 minutes later someone sets the clock to 9:36, how can he tell 5 minutes went by instead of 1.. is that what your asking? if so i would think you would have to monitor the time at a constant rate.. like have a thread that checks the clock every 30 seconds.. this 30 secods would be based of the speed of the system clock.. -dz

                S Offline
                S Offline
                SamirSood
                wrote on last edited by
                #7

                Yes It does change the BIOS time . But is there anything in the BIOS which stores how many clock ticks have passed since it was manufactured then relatively we can get the current time is that so ? Please reply t it Samir Sood

                R J 2 Replies Last reply
                0
                • S SamirSood

                  Yes It does change the BIOS time . But is there anything in the BIOS which stores how many clock ticks have passed since it was manufactured then relatively we can get the current time is that so ? Please reply t it Samir Sood

                  R Offline
                  R Offline
                  Rage
                  wrote on last edited by
                  #8

                  May GetTickCount() solve the problem ? Do you only need a base time ? ~RaGE();

                  1 Reply Last reply
                  0
                  • S SamirSood

                    Yes It does change the BIOS time . But is there anything in the BIOS which stores how many clock ticks have passed since it was manufactured then relatively we can get the current time is that so ? Please reply t it Samir Sood

                    J Offline
                    J Offline
                    John M Drescher
                    wrote on last edited by
                    #9

                    SamirSood wrote: But is there anything in the BIOS which stores how many clock ticks have passed since it was manufactured No there is not. John

                    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