win - linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Sgier

    #1

    win - linux

    Hi
    a question. I don't even understand the logic. ( What and where to
    define etc. )

    Impliment in a Linux environment the following related Win32 API function:

    QueryPerformanc eFrequency


    No more than 4 lines of code and not outside of libc
    Many thanks.
    Regards Michael
  • red floyd

    #2
    Re: win - linux

    Michael Sgier wrote:
    Hi
    a question. I don't even understand the logic. ( What and where to
    define etc. )
    >
    Impliment in a Linux environment the following related Win32 API function:
    >
    QueryPerformanc eFrequency
    OT. Ask in a linux group. See FAQ 5.9
    (http://www.parashift.com/c++-faq-lit...t.html#faq-5.9)
    >
    >
    No more than 4 lines of code and not outside of libc
    However, this little ridiculous requirement (which is probably damn near
    impossible) leads me to refer you to FAQ 5.2.
    (http://www.parashift.com/c++-faq-lit...t.html#faq-5.9)


    Comment

    • Michael Sgier

      #3
      Re: win - linux

      This is only for personal interest reasons. FAQ 5.2

      It looks general C++ to me and I might not get an answer in an Linux
      group. FAQ 5.9

      Comment

      • Ioannis Vranos

        #4
        Re: win - linux

        Michael Sgier wrote:
        Hi
        a question. I don't even understand the logic. ( What and where to
        define etc. )
        >
        Impliment in a Linux environment the following related Win32 API function:
        >
        QueryPerformanc eFrequency
        >
        >
        No more than 4 lines of code and not outside of libc
        Many thanks.
        Regards Michael

        So you want to implement that function. Telling us what that function
        does, would be helpful.

        Comment

        • Ioannis Vranos

          #5
          Re: win - linux

          Michael Sgier wrote:
          Hi
          a question. I don't even understand the logic. ( What and where to
          define etc. )
          >
          Impliment in a Linux environment the following related Win32 API function:
          >
          QueryPerformanc eFrequency
          >
          >
          No more than 4 lines of code and not outside of libc
          Many thanks.

          Win32 API and libc are C libraries and not C++.


          In any case, you had better ask in the following mailing list:

          Comment

          • Ioannis Vranos

            #6
            Re: win - linux

            Ioannis Vranos wrote:
            Michael Sgier wrote:
            >Hi
            > a question. I don't even understand the logic. ( What and where to
            >define etc. )
            >>
            >Impliment in a Linux environment the following related Win32 API
            >function:
            >>
            >QueryPerforman ceFrequency
            >>
            >>
            >No more than 4 lines of code and not outside of libc
            >Many thanks.
            >
            >
            Win32 API and libc are C libraries and not C++.
            >
            >
            In any case, you had better ask in the following mailing list:
            http://gcc.gnu.org/ml/gcc-help/

            here:


            Comment

            • Lionel B

              #7
              Re: win - linux

              On Wed, 01 Oct 2008 11:57:03 +0200, Michael Sgier wrote:

              [...]
              It looks general C++ to me
              How so? Your question does not pertain to the C++ *language* (and in any
              case the APIs in question are not even C++).
              and I might not get an answer in an Linux group
              Where it might actually be on-topic...? You are much less likely to get
              an answer here, I would have thought, since your query is obviously OT.
              FAQ 5.9
              Quote: "Operating-specific questions (e.g., about Windows NT / 95 / 3.x,
              UNIX, etc.) should go to an operating-system-specific newsgroup (see
              below), not to comp.lang.c++."

              --
              Lionel B

              Comment

              • Paavo Helde

                #8
                Re: win - linux

                Michael Sgier <sgier@nospam.c omkirjutas:
                Hi
                a question. I don't even understand the logic. ( What and where to
                define etc. )
                >
                Impliment in a Linux environment the following related Win32 API
                function:
                >
                QueryPerformanc eFrequency
                This would have been less off-topic if you had explained what the
                QueryPerformanc eFrequency() function is supposed to do.

                Well, anyway implementing QueryPerformanc eFrequency would not make much
                sense if QueryPerformanc eCounter had not been implemented first. In this
                case it should become obvious how to implement it, they work tightly
                together.

                I also suggest to look up Boost date_time library, this should give
                relatively portable means for working with timings. AFAIK it should be able
                to give the microsecond or better resolution, if available on the platform.


                hth
                Paavo

                Comment

                Working...