@@ -20,11 +20,10 @@ #include #include #include #include #include -#include #include #import "OFDate.h" #import "OFString.h" @@ -217,11 +216,11 @@ { struct timeval t; self = [super init]; - assert(!gettimeofday(&t, NULL)); + OF_ENSURE(!gettimeofday(&t, NULL)); seconds = t.tv_sec; seconds += (double)t.tv_usec / 1000000; return self; @@ -623,11 +622,11 @@ - (double)timeIntervalSinceNow { struct timeval t; double seconds_; - assert(!gettimeofday(&t, NULL)); + OF_ENSURE(!gettimeofday(&t, NULL)); seconds_ = t.tv_sec; seconds_ += (double)t.tv_usec / 1000000; return seconds - seconds_;