View Single Post
Re: what's your pathwalking algorithm
Old
  (#7)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: what's your pathwalking algorithm - 05-01-2004

15ms ... on what kind of hardware ?

getTickCount isnt the best choice, since it's normally using a counter which is running at @ 1Mhz I think ... so no good choice. use something like this to read the number of cpu cycles instead. then you need of course to clean the result from effects of your multitasking environment

Code:
_int64 CTime::getTime(){
	_int64 rdtsc_time;
	__asm 
	{ 
		rdtsc 
		mov dword ptr [rdtsc_time],eax 
		mov dword ptr [rdtsc_time+4],edx 
	}
	return rdtsc_time;
}
( btw, thx for william for this )


  
Reply With Quote