Sha256: 9183ba6c4022e97c1e12705c15786042aac015a23ad12a6d90421b8dc4ced52f
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
#ifndef UTIL_H_GUARD #define UTIL_H_GUARD #ifdef __cplusplus extern "C" { #endif #include "cones.h" #include "scs.h" #include <stdio.h> #include <stdlib.h> /* timing code courtesy of A. Domahidi */ #if (defined NOTIMER) typedef void *SCS(timer); #elif (defined _WIN32 || defined _WIN64 || defined _WINDLL) /* Use Windows QueryPerformanceCounter for timing */ #include <windows.h> typedef struct SCS(timer) { LARGE_INTEGER tic; LARGE_INTEGER toc; LARGE_INTEGER freq; } SCS(timer); #elif (defined __APPLE__) /* Use MAC OSX mach_time for timing */ #include <mach/mach_time.h> typedef struct SCS(timer) { uint64_t tic; uint64_t toc; mach_timebase_info_data_t tinfo; } SCS(timer); #else /* Use POSIX clock_gettime() for timing on other machines */ #include <time.h> typedef struct SCS(timer) { struct timespec tic; struct timespec toc; } SCS(timer); #endif /* these all return milli-seconds */ void SCS(tic)(SCS(timer) * t); scs_float SCS(tocq)(SCS(timer) * t); void SCS(free_sol)(ScsSolution *sol); void SCS(free_data)(ScsData *d, ScsCone *k, ScsSettings *stgs); #ifdef __cplusplus } #endif #endif
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scs-0.3.2 | vendor/scs/include/util.h |
scs-0.3.1 | vendor/scs/include/util.h |
scs-0.3.0 | vendor/scs/include/util.h |