mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
1c2996546d
git-svn-id: file:///svn/toku/tokudb@11217 c7de825b-a66e-492c-adef-691d508d4ae1
18 lines
301 B
C
18 lines
301 B
C
#ifndef TOKU_TIME_H
|
|
#define TOKU_TIME_H
|
|
|
|
#include <time.h>
|
|
#include <sys/time.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
static inline float toku_tdiff (struct timeval *a, struct timeval *b) {
|
|
return (a->tv_sec - b->tv_sec) +1e-6*(a->tv_usec - b->tv_usec);
|
|
}
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
#endif
|