Author: Dieter Buerssner
Date: 12:43:57 05/14/04
Go up one level in this thread
On May 13, 2004 at 20:20:08, Robert Hyatt wrote: >On May 13, 2004 at 17:11:50, Dieter Buerssner wrote: > >>On May 13, 2004 at 16:47:43, Robert Hyatt wrote: >> >>>Time is almost always unsigned... >> >>Interestingly, the only Standard C function for getting a wall clock time >>returns time_t, which is conventionally a signed integer (although Standard C >>only guarantees it to be an arithmetic type - it could be a double for example). >I use gettimeofday() which has no such problem. I think, I am agreeing with you on the issue in general. My answer was only refering to your point: "Time is almost always unsigned...". The Posix function gettimeofday() (which is not a Standard C function) returns the time in a struct timeval. Its members are typically (or always?) signed integers, too. I don't doubt, that one can use gettimeofday() or other system specific means correctly. Regards, Dieter
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.