Is it possible to get a timer running in the background and be able to get its value later?
Is it possible to get a timer running in the background and be able to get its value later?
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
What operating system?
Most operating systems offer all sorts of timers you can use.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
windows xp
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
Not sure if this is what you need but check this out.
http://www.cprogramming.com/fod/time.html
Ahh not exactly I'm looking for a function that can record the elapsed time since it has been called to, if that makes sense
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
MSVC++Originally posted by Salem
To time how long a particular function took
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
ok so next step..... console or windows program?
What sort of timing resolution do you need?
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
Console. Timing resolution?
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
GetTickCount() will give you milliseconds resolution.
QueryPerformanceCounter() is another possibility.
Look them both up at msdn
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
thanks!
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.