Thanks so much I will definatly use this class in the future, works great.
I had a bit of trouble implementing it, but that was totally my fault with a really stupid oversight, i couldnt figure out why both print outs gave me the same number.
Im sure you will see the error in seconds
cheers
thanks again
// code shows my previous oversight // time with a milliseconds accuracy timer my_timer(timer::milliseconds); for(int i = 0; i < 1000; i++) DrawTriangle1(memDC, BLUE); my_timer.stop();int ScanFlood = my_timer.get_accumulated_time(); my_timer.restart(); for(int i = 0; i < 1000; i++) DrawTriangle(memDC, GREEN); my_timer.stop();int FillFlood = my_timer.get_accumulated_time(); //############################################################################# char str[100]; sprintf(str,"Flood Fill Scan = %d", my_timer.get_accumulated_time() ); TextOut(memDC, 10, 20, str, strlen(str)); char str2[100]; sprintf(str2,"Flood Fill = %d", FillFlood); TextOut(memDC, 10, 300, str2, strlen(str2));