From 99de67fb05c7aebc5f9ea76bd0d4245d9a57fb7e Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 2 Aug 2008 02:32:29 +0000 Subject: [PATCH] fix for windows --- contrib/Chaco/util/seconds.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/contrib/Chaco/util/seconds.c b/contrib/Chaco/util/seconds.c index a7e4c26ce3..763dbc26ac 100644 --- a/contrib/Chaco/util/seconds.c +++ b/contrib/Chaco/util/seconds.c @@ -2,6 +2,16 @@ * at Sandia National Laboratories under US Department of Energy * * contract DE-AC04-76DP00789 and is copyrighted by Sandia Corporation. */ +/* Added for Gmsh */ +#if defined(WIN32) && !defined(__CYGWIN__) + +double seconds() +{ + return 0.; +} + +#else + #include <sys/time.h> #include <sys/resource.h> @@ -29,3 +39,5 @@ double seconds() return (curtime); } + +#endif -- GitLab