~fallenpegasus/drizzle/logcsv

« back to all changes in this revision

Viewing changes to plugin/innobase/ut/ut0ut.c

  • Committer: lbieber at stabletransit
  • Date: 2010-10-13 16:20:08 UTC
  • mfrom: (1843.1.3 build)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101013162008-qi2e6k5yvfm16964
Merge Stewart - update innobase plugin to be based on innodb_plugin 1.0.6
Merge Monty - more valgrind cleanup
Merge Monty - Moved libdrizzle api listings from doxygen to sphinx

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
        return(time(NULL));
149
149
}
150
150
 
 
151
#ifndef UNIV_HOTBACKUP
151
152
/**********************************************************//**
152
153
Returns system time.
153
154
Upon successful completion, the value 0 is returned; otherwise the
216
217
}
217
218
 
218
219
/**********************************************************//**
 
220
Returns the number of milliseconds since some epoch.  The
 
221
value may wrap around.  It should only be used for heuristic
 
222
purposes.
 
223
@return ms since epoch */
 
224
UNIV_INTERN
 
225
ulint
 
226
ut_time_ms(void)
 
227
/*============*/
 
228
{
 
229
        struct timeval  tv;
 
230
 
 
231
        ut_gettimeofday(&tv, NULL);
 
232
 
 
233
        return((ulint) tv.tv_sec * 1000 + tv.tv_usec / 1000);
 
234
}
 
235
#endif /* !UNIV_HOTBACKUP */
 
236
 
 
237
/**********************************************************//**
219
238
Returns the difference of two times in seconds.
220
239
@return time2 - time1 expressed in seconds */
221
240
UNIV_INTERN