C/C++ Help for Dev-C++: Find a Clock & Good Assistance

  • Thread starter Thread starter Lojzek
  • Start date Start date
AI Thread Summary
To measure the time taken for calculations in Dev-C++, the clock function from the C++ standard library can be utilized for second-level precision. For higher precision measurements, such as milliseconds or microseconds, the "rdtsc" instruction is recommended, which may be supported by GCC in C code. Additionally, users are seeking better resources for Dev-C++ help, as the built-in documentation is lacking in detail and does not cover all functions comprehensively. Online resources, including specific websites and forums, can provide more extensive guidance and support for Dev-C++.
Lojzek
Messages
246
Reaction score
1
I use Dev-C++ and I would like to measure time needed to perform calculation.
Is there some sort of clock function is this program?

I would also like to find a good help for Dev-C++. Does anyone know where to get it?
(the help in my program isn't very good: it does not even contain description of all functions).
 
Technology news on Phys.org
I don't koow what precision do you care. for seconds, you could use clock function see:
http://www.cplusplus.com/reference/clibrary/ctime/time.html

but for more precise, such as one ms or one us, you could use "rdtsc" instructions, the gcc may support this inline instruction in your c code.

see : http://www.geocities.com/izenkov/howto-rdtsc.htm
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top