Hi
I just got a silly question. I want to use a timer to measure how long a key is pressed.
I am using vc++ 2005 express and have tried this code
yake::Timer* anyname;
anyname->getSeconds();
I can compile the code but i can't get it to work. Can someone give a sample of how to use the timer?
Thanks in advance
SZ
Solution:Since i have seen that the yake::timer class is just an interface i have used the timer of boost. (I'm liking boost more and more)
//One more include in my header file.
#include <boost/timer.hpp>
//the boost timer is used like any other variable type
boost::timer anyname;
//onkeydown restart the timer
anyname.restart();
//onkeyup show elapsed time //returns time as double
anyname.elapsed();