   Timer over multiple thread
  Say I would like to time the total time taken for each of my boost thread. Can I safely use a timer class in each thread to record the time?? Or would such a scenario occur:1.thread A run, start timer2.midway, the OS reschedule thread A and start thread B3.thread B completes4.thread A resume5.thread A finishes but the timer gave the wrong timing since it didn't account for the time where the OS paused itwould such a problem occur?? if so, is there anyway to poll the correct time taken for each thread?regards   
  If you use GetThreadTimes() (if you're on Windows) then you won't have that problem.   ;  hmm thanks for the replies. But I would like to work on other platform other than windows too. Maybe something that is compatible with boost threads, since I am using boost threads   