Poco::Util::TimerTask Pocoタイマ実装


#include 
#include 
#include 
#include 
#include 
#include 
using namespace std;

/*Poco Timer Test*/
class TestTimer:public Poco::Util::TimerTask
{
public:
	void run();
};

void TestTimer::run()
{
	cout<scheduleAtFixedRate(&obj, 0, 1000); 
	*/

	/*       */
	Poco::Timestamp timeobj;
	//timeobj.epochMicroseconds();
	//cout<scheduleAtFixedRate(&obj, timeobj, 1000);  //               

	/*        ,      ,        、    */
	
	
	//timer_->schedule(&obj,timeobj.epochMicroseconds() - 2000000);
	timer_->schedule(&obj,5000,5000); //          、        
	getchar();
	return 0;
}