Rewrite time measurement code
authorMarco Costalba <mcostalba@gmail.com>
Sat, 3 Mar 2012 08:35:56 +0000 (09:35 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 3 Mar 2012 17:01:39 +0000 (18:01 +0100)
commit161c6b025e763d6bcc8339a614be312f2b173437
treeffd019dc16c1e861a7cfb3589374bf34b5c7d903
parentb966adf103bd4a8b08141d9fd189f5ad6744bfdd
Rewrite time measurement code

Introduce and use a new Time class designed after
QTime, from Qt framework. Should be a more clear and
self documented code.

As an added benefit we now use 64 bits internally to get
millisecs from system time. This avoids to wrap around
to 0 every 2^32 milliseconds, which is 49.71 days.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/benchmark.cpp
src/book.cpp
src/misc.cpp
src/misc.h
src/search.cpp
src/types.h
src/uci.cpp