Author: Ian Osgood
Date: 09:50:55 02/15/00
Go up one level in this thread
On February 14, 2000 at 22:03:01, Michael Neish wrote:
>
>Hi,
>
>I tried compiling TSCP 1.5 on the Mac last night (using CodeWarrior Pro), but
>came up with a few errors that I don't know how to tackle. They were all to do
>with the system time, e.g., "sys/time.h" not found", etc. If anyone compiled it
>on the Mac, could you tell me how you managed it?
>
>Thanks,
>
>Mike.
Use this code instead:
#include <Events.h>
long get_ms()
{
/* convert from 1/60 sec since system start to ms (1000/60 == 50/3) */
return TickCount() * 50 / 3;
}
Ian
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.