473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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:

QueryPerformanceFrequency
No more than 4 lines of code and not outside of libc
Many thanks.
Regards Michael
Oct 1 '08 #1
7 2809
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:

QueryPerformanceFrequency
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)
Oct 1 '08 #2
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
Oct 1 '08 #3
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:

QueryPerformanceFrequency
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.
Oct 1 '08 #4
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:

QueryPerformanceFrequency
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/
Oct 1 '08 #5
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:

QueryPerformanceFrequency
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:

http://gcc.gnu.org/lists.html#subscribe
Oct 1 '08 #6
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
Oct 1 '08 #7
Michael Sgier <sg***@nospam.comkirjutas:
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:

QueryPerformanceFrequency
This would have been less off-topic if you had explained what the
QueryPerformanceFrequency() function is supposed to do.

Well, anyway implementing QueryPerformanceFrequency would not make much
sense if QueryPerformanceCounter 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
Oct 1 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jhuola Hoptire | last post by:
Just installed J2RE 1.4.2 on a Linux server. I am very knew to the POSIX world. I couldn't dig-up much in the docs or via google about the following: 1 - Is there a standard way to make sure...
0
by: Eric Raymond | last post by:
When installing the rpms (or the tar file) onto Red Hat Enteprise Linux AS Beta 1 (Taroon), we get the follwing error: Installing all prepared tables /usr/bin/mysql_install_db: line 1: 7690...
6
by: gnu | last post by:
Rationale to use Linux ======================= - I can't afford paying for $199 for the license of an OS that's arguably better thank Linux for each of 10 computers I have. - I want to be...
21
by: Travis 'Bailo' Bickel | last post by:
Lately, I have been having a bear of a time trying to acquire a Linux driver for my S3/ProSavage chipset -- but that quest is now almost at an end as I have located a noble band of people who are...
1
by: srihari | last post by:
Hai, I am trying to install IBM DB2 8.1 on Red Hat linux 8.0. My machine is Intel XEON 64bit. The installation went well except for the creation of tools catalog. When I tried to install the tools...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
5
by: cranium.2003 | last post by:
hi, Here is my code #include <iostream.h> int main() { cout <<"HI"; return 0; } and using following command to compile a C++ program g++ ex1.cpp -o ex1
1
by: rada.lambretha | last post by:
Configuring Linux as a Firewall * Making installation choices * Introducing iptables * Using iptables commands * Simplifying things with firewall GUIs * Adding proxy functionality As...
1
Nepomuk
by: Nepomuk | last post by:
You might have heard about Linux, but you don't know what it is? Or you know a few things about it, but they terrify you? Well, then this article is for you. Don't be afraid - Everyone can use Linux!...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.