#include <ctime>
#include <limits>
+#include <SDL/SDL.h>
+
#include "Log.hh"
#include "Timer.hh"
#include "config.h"
#endif
-#include <SDL/SDL.h>
-
namespace Mf {
{
struct timespec ts;
- ASSERT(clock_gettime(CLOCK_MONOTONIC, &ts) == 0 && "cannot access clock");
+ int result = clock_gettime(CLOCK_MONOTONIC, &ts);
+ ASSERT(result == 0 && "cannot access clock");
return Scalar(ts.tv_sec - reference) + Scalar(ts.tv_nsec) / 1000000000.0;
}