diff options
Diffstat (limited to 'ecore/src/e_util.c')
-rw-r--r-- | ecore/src/e_util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ecore/src/e_util.c b/ecore/src/e_util.c new file mode 100644 index 0000000..fc4a2ae --- /dev/null +++ b/ecore/src/e_util.c @@ -0,0 +1,10 @@ +#include "Ecore.h" + +double +ecore_get_time(void) +{ + struct timeval timev; + + gettimeofday(&timev, NULL); + return (double)timev.tv_sec + (((double)timev.tv_usec) / 1000000); +} |