X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeoday.cpp;h=ed1a2a907bc2bbf26f247f1d65776b892d1af7d0;hp=1078af305178a4bb6cf4932ed19c349e3e5c49ca;hb=9e44a6dba9718b74a64656ae7801a62946c3b725;hpb=bb751d6c890f5c50c642366d601740366cfae8d0 diff --git a/src/timeoday.cpp b/src/timeoday.cpp index 1078af30..ed1a2a90 100644 --- a/src/timeoday.cpp +++ b/src/timeoday.cpp @@ -2,21 +2,21 @@ (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 #include #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);