diff options
Diffstat (limited to 'src/sat/glucose/System.h')
-rw-r--r-- | src/sat/glucose/System.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sat/glucose/System.h b/src/sat/glucose/System.h index 9d94785e..d5011919 100644 --- a/src/sat/glucose/System.h +++ b/src/sat/glucose/System.h @@ -29,7 +29,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA //------------------------------------------------------------------------------------------------- -namespace Glucose { +namespace Gluco { static inline double cpuTime(void); // CPU-time in seconds. extern double memUsed(); // Memory in mega bytes (returns 0 for unsupported architectures). @@ -43,14 +43,14 @@ extern double memUsedPeak(); // Peak-memory in mega bytes (returns 0 for #if defined(_MSC_VER) || defined(__MINGW32__) #include <time.h> -static inline double Glucose::cpuTime(void) { return (double)clock() / CLOCKS_PER_SEC; } +static inline double Gluco::cpuTime(void) { return (double)clock() / CLOCKS_PER_SEC; } #else #include <sys/time.h> #include <sys/resource.h> #include <unistd.h> -static inline double Glucose::cpuTime(void) { +static inline double Gluco::cpuTime(void) { struct rusage ru; getrusage(RUSAGE_SELF, &ru); return (double)ru.ru_utime.tv_sec + (double)ru.ru_utime.tv_usec / 1000000; } |