X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeoday.cpp;h=ed1a2a907bc2bbf26f247f1d65776b892d1af7d0;hp=1078af305178a4bb6cf4932ed19c349e3e5c49ca;hb=74160ac60266f9e6824a5a6417d8a0ac8c0b39cf;hpb=feb5342b393895160867aa7c7fa4d6cb563718ca 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);