Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if test x$openmp = xtrue ; then
fi

# Checks for header files.
AC_CHECK_HEADERS([inttypes.h stdint.h sys/time.h unistd.h])
AC_CHECK_HEADERS([inttypes.h stdint.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
Expand Down
1 change: 0 additions & 1 deletion src/fglm/fglm_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include<stdlib.h>
#include<string.h>
#include<stdint.h>
#include<unistd.h>
#include<time.h>
/* for timing functions */
#include "../neogb/tools.h"
Expand Down
1 change: 0 additions & 1 deletion src/msolve/msolve-data.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "../neogb/data.h"
#include<flint/fmpz.h>
#include<flint/fmpq.h>
#include <unistd.h>
#include <string.h>
#include <getopt.h>
#include <ctype.h>
Expand Down
6 changes: 3 additions & 3 deletions src/neogb/tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ double cputime(void)
/* wall time */
double realtime(void)
{
struct timeval t;
gettimeofday(&t, NULL);
struct timespec t;
timespec_get(&t, TIME_UTC);
t.tv_sec -= (2017 - 1970)*3600*24*365;
return (1. + (double)t.tv_usec + ((double)t.tv_sec*1000000.)) / 1000000.;
return (1. + (double)t.tv_nsec + ((double)t.tv_sec*1000000000.)) / 1000000000.;
}

static void construct_trace(
Expand Down
1 change: 0 additions & 1 deletion src/neogb/tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#define GB_TOOLS_H

#include <time.h>
#include <sys/time.h>
#include "data.h"

/* cpu time */
Expand Down
1 change: 0 additions & 1 deletion src/usolve/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include<stdio.h>
#include<stdlib.h>
#include <unistd.h>
#include<gmp.h>
#include<math.h>
#include<time.h>
Expand Down
1 change: 0 additions & 1 deletion src/usolve/univmultiply.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <gmp.h>
#include <math.h>
#include <time.h>
Expand Down
1 change: 0 additions & 1 deletion src/usolve/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <math.h>
#include "../msolve/streams.h"
Expand Down
Loading