Computer Chess Club Archives


Search

Terms

Messages

Subject: code question

Author: Mike Siler

Date: 18:39:09 10/03/03


Right now, to find out how much time has passed in a search, my program uses a
function identical to "get_ms()" in TSCP. The function is just:

int get_ms(){
	struct timeb timebuffer;
	ftime(&timebuffer);
	return (timebuffer.time * 1000) + timebuffer.millitm;
}

I discovered that this fairly slow function seems to be a big bottleneck in my
program. I'm just wondering what other (C) programs use to get the time more
quickly.

Michael



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.