I was trying to find the same in the boost lib but I did not find available in boost lib. You can use SDL lib timer from: web: http://www.libsdl.org Because it is LGPL licensed, so you don't have to expose your source when using its library. You can also extract only timer lib from its whole lib. Best regards, Fanzhe ++++++++++++++++++++++++++++ Goldiom Systems LLC - Information and Communication Technology Provider Email: fanzhe.cui@goldiom.com Tel: 973-210-4254 www.goldiom.com -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Meryl Silverburgh Sent: Saturday, June 16, 2007 7:59 PM To: boost-users@lists.boost.org Subject: [Boost-users] How to create a timer in boost::thread Hi, Can you please tell me if i can do this with boost::thread library? 1. create a timer (say 5 seconds) which execute a function in a different thread when it expires. 2. the creator can cancel the timer before it expires. Thank you. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users