ObjFW  Diff

Differences From Artifact [f24e945ba2]:

To Artifact [e749446c20]:


616
617
618
619
620
621
622
623

624
625
626
627
628
629
630
631
632
633
634
635
616
617
618
619
620
621
622

623
624
625
626
627
628
629
630
631
632
633
634
635







-
+












}

- (of_time_interval_t)timeIntervalSinceNow
{
	struct timeval t;
	of_time_interval_t seconds;

	OF_ENSURE(!gettimeofday(&t, NULL));
	OF_ENSURE(gettimeofday(&t, NULL) == 0);

	seconds = t.tv_sec;
	seconds += (of_time_interval_t)t.tv_usec / 1000000;

	return _seconds - seconds;
}

- (OFDate*)dateByAddingTimeInterval: (of_time_interval_t)seconds
{
	return [OFDate dateWithTimeIntervalSince1970: _seconds + seconds];
}
@end