Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/logging/gen/templates/logging_hxx.in
ViewVC logotype

Diff of /branches/vis15/src/logging/gen/templates/logging_hxx.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4846, Tue Dec 20 21:40:39 2016 UTC revision 4847, Tue Dec 20 21:44:28 2016 UTC
# Line 37  Line 37 
37  #elif defined(HAVE_CLOCK_GETTIME)  #elif defined(HAVE_CLOCK_GETTIME)
38              struct timespec t;              struct timespec t;
39              clock_gettime (CLOCK_REALTIME, &t);              clock_gettime (CLOCK_REALTIME, &t);
40              ts->_tv.sec = t.tv_sec;              ts->_tv._sec = t.tv_sec;
41              ts->_tv.frac = t.tv_nsec;              ts->_tv._frac = t.tv_nsec;
42  #else  #else
43              struct timeval t;              struct timeval t;
44              gettimeofday (&t, 0);              gettimeofday (&t, 0);
45              ts->_tv.sec = t.tv_sec;              ts->_tv._sec = t.tv_sec;
46              ts->_tv.frac = t.tv_usec;              ts->_tv._frac = t.tv_usec;
47  #endif  #endif
48          }          }
49    

Legend:
Removed from v.4846  
changed lines
  Added in v.4847

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0