Author: Dann Corbit
Date: 15:39:25 12/13/99
Go up one level in this thread
On December 12, 1999 at 19:09:02, Daniel Clausen wrote:
>Hi
>
>On December 12, 1999 at 14:28:54, Tom Kerrigan wrote:
>
>>If you send me this executable, I can post it on my web page and more Mac users
>>will be able to use the program... It might also be good for comparing
>>CodeWarrior 5 to CW 3.
>>-Tom
>
>I compiled TSCP.1.42 again so that it should work on all PPC-systems
>now. (Not only G3/G4). Tom was so kind to put it on his home page.
>Thanks Tom!
>
>For Mac-programmers:
>1. I had to change the function get_ms() since CodeWarrior 5.2 couldn't
>find the header-file <sys/timeb.h> and therefore also the struct timeb.
>
>Here's how I implemented this function:
>
>#include <time.h>
>long get_ms()
>{
> ftime_works = TRUE;
> return clock() * 1000 / CLOCKS_PER_SEC;
>}
>
>Please let me know if there's something wrong with that. I couldn't find
>a more accurate function.
If you are running other threads of execution on your system, it won't be very
accurate, since clock() returns time slices given to the process only, not wall
time. However, if you start the process in high priority, it will be pretty
close. Unfortunately, high resolution timers are not very portable, and you
usually end up writing them one by one for each new system.
>2. When I linked TSCP with the option "Target=GenericPPC", I got
>a higher NPS than with "Target=750 (G3)". I have no idea why
>though.
>
>Hardware: G3/266
>Software: CodeWarrior 5.2 & TSCP1.42
>NPS : 44628
>
>
>Kind regards,
> -sargon
>
>PS. TSCPs homepage is http://ucsu.Colorado.EDU/~kerrigat/
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.