| View previous topic :: View next topic |
| Author |
Message |
H.G.Muller

Joined: 10 Mar 2006 Posts: 12767 Location: Amsterdam
|
Post subject: Re: CPU time in Windows Posted: Mon Feb 13, 2012 7:27 pm |
|
|
Thanks!
A big request:
could you make a Fruit 2.1 Windows compile for me that prints the real time and the user time? I don't manage to compile it with gcc in -mno-cygwin mode, it produces tons of error messages. (On Linux it compiled fine, and cpu_now() and real_now() also worked with good precision.) What I need is a version that prints
| Code: |
startTime = WallClockTime(); // time stamp (millisec)
cpuTime = CPUtime(); // Total CPU used upto now (millisec)
printf("info string times @ %u\n", startTime);
|
immediately after it receives a "go" command (this code is in protocol.cpp), and
| Code: |
stopTime = WallClockTime(); // time stamp
cpuTime = CPUtime() - cpuTime; // Consumed CPU time
printf("info string times @ %u: real=%u cpu=%u\n", stopTime, stopTime - startTime, cpuTime);
|
just before it sends "bestmove". (Also in protocol.cpp.)
I have written a small program that extracts such messages from the debug file, and calculates from them the delay between sending a move and the opponent receiving it, and CPU time stolen by the GUI. |
|
| Back to top |
|
 |
|
| Subject |
Author |
Date/Time |
CPU time in Windows |
H.G.Muller |
Mon Feb 13, 2012 6:18 pm |
Re: CPU time in Windows |
Jim Ablett |
Mon Feb 13, 2012 6:50 pm |
Re: CPU time in Windows |
H.G.Muller |
Mon Feb 13, 2012 7:27 pm |
Re: CPU time in Windows |
Jim Ablett |
Tue Feb 14, 2012 1:11 am |
Re: CPU time in Windows |
Jim Ablett |
Tue Feb 14, 2012 11:34 am |
Re: CPU time in Windows |
Daniel Shawul |
Tue Feb 14, 2012 12:41 pm |
Re: CPU time in Windows |
Ricardo Barreira |
Sun Feb 19, 2012 1:07 pm |
Re: CPU time in Windows |
Daniel Shawul |
Sun Feb 19, 2012 5:16 pm |
Re: CPU time in Windows |
H.G.Muller |
Sun Feb 19, 2012 12:17 pm |
Re: CPU time in Windows |
Jim Ablett |
Sun Feb 19, 2012 12:43 pm |
Re: CPU time in Windows |
H.G.Muller |
Sun Feb 19, 2012 1:00 pm |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|