ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.291 by root, Mon Jun 29 04:44:18 2009 UTC vs.
Revision 1.292 by root, Mon Jun 29 07:22:56 2009 UTC

564 564
565#endif 565#endif
566 566
567/*****************************************************************************/ 567/*****************************************************************************/
568 568
569#ifndef EV_HAVE_EV_TIME
569ev_tstamp 570ev_tstamp
570ev_time (void) 571ev_time (void)
571{ 572{
572#if EV_USE_REALTIME 573#if EV_USE_REALTIME
573 if (expect_true (have_realtime)) 574 if (expect_true (have_realtime))
580 581
581 struct timeval tv; 582 struct timeval tv;
582 gettimeofday (&tv, 0); 583 gettimeofday (&tv, 0);
583 return tv.tv_sec + tv.tv_usec * 1e-6; 584 return tv.tv_sec + tv.tv_usec * 1e-6;
584} 585}
586#endif
585 587
586inline_size ev_tstamp 588inline_size ev_tstamp
587get_clock (void) 589get_clock (void)
588{ 590{
589#if EV_USE_MONOTONIC 591#if EV_USE_MONOTONIC

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines