]> git.sesse.net Git - stockfish/blobdiff - src/timeoday.cpp
A move needs 17 bits not 19
[stockfish] / src / timeoday.cpp
index 1078af305178a4bb6cf4932ed19c349e3e5c49ca..ed1a2a907bc2bbf26f247f1d65776b892d1af7d0 100644 (file)
@@ -2,21 +2,21 @@
    (c) Copyright 1992 Eric Backus
 
    This software may be used freely so long as this copyright notice is
    (c) Copyright 1992 Eric Backus
 
    This software may be used freely so long as this copyright notice is
-   left intact.  There is no warrantee on this software.
- */
+   left intact. There is no warrantee on this software.
+*/
+
 #include <windows.h>
 #include <time.h>
 #include "dos.h"
 
 #include <windows.h>
 #include <time.h>
 #include "dos.h"
 
-
-int             gettimeofday(struct timeval * tp, struct timezone * tzp)
+int gettimeofday(struct timeval* tp, struct timezone* tzp)
 {
 {
-    SYSTEMTIME      systime;
-
-    if (tp) {
-        struct tm       tmrec;
-        time_t          theTime = time(NULL);
+    SYSTEMTIME systime;
 
 
+    if (tp)
+    {
+        struct tm tmrec;
+        time_t theTime = time(NULL);
 
         tmrec = *localtime(&theTime);
         tp->tv_sec = mktime(&tmrec);
 
         tmrec = *localtime(&theTime);
         tp->tv_sec = mktime(&tmrec);