This is an automated email from the git hooks/post-receive script.
git pushed a commit to reference refs/pull/5/head
in repository expedite.
View the commit online.
commit ab5f192fd586e4da49755058c115820b390c162c
Author: Vincent Torri <[email protected]>
AuthorDate: Wed May 20 07:27:01 2026 +0200
use ecore_time_get() instead of get_time()
---
src/bin/main.c | 17 -----------------
src/bin/main.h | 1 -
src/bin/ui.c | 6 +++---
3 files changed, 3 insertions(+), 21 deletions(-)
diff --git a/src/bin/main.c b/src/bin/main.c
index 755ac0b..5d3ace8 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -1068,23 +1068,6 @@ rnd(void)
return (int)(((unsigned int)r1 << 16) | ((unsigned int)r2));
}
-#ifndef _WIN32
-double
-get_time(void)
-{
- struct timeval timev;
-
- gettimeofday(&timev, NULL);
- return (double)timev.tv_sec + (((double)timev.tv_usec) / 1000000);
-}
-#else
-double
-get_time(void)
-{
- return (double)GetTickCount()/1000.0;
-}
-#endif
-
const char *
build_path(const char *filename)
{
diff --git a/src/bin/main.h b/src/bin/main.h
index 4457d26..2c95c6c 100644
--- a/src/bin/main.h
+++ b/src/bin/main.h
@@ -66,7 +66,6 @@ struct _Expedite_Engine
void srnd(void);
unsigned int rnd(void);
-double get_time(void);
const char *build_path(const char *filename);
void engine_loop(void);
int engine_abort(void);
diff --git a/src/bin/ui.c b/src/bin/ui.c
index 6021cc7..6fdc93a 100644
--- a/src/bin/ui.c
+++ b/src/bin/ui.c
@@ -524,7 +524,7 @@ ui_loop(void *data EINA_UNUSED)
if (loop_func)
{
- t = get_time();
+ t = ecore_time_get();
f_loop++;
f_start++;
if ((t - t_loop) >= 1.0)
@@ -537,7 +537,7 @@ ui_loop(void *data EINA_UNUSED)
return EINA_TRUE;
}
- t2 = get_time();
+ t2 = ecore_time_get();
if (first)
{
t = 0.1;
@@ -655,7 +655,7 @@ ui_func_set(void (*kfunc) (const char *key), void (*lfunc) (double t, int f), vo
{
key_func = kfunc;
loop_func = lfunc;
- t_loop = t_start = get_time();
+ t_loop = t_start = ecore_time_get();
f_loop = f_start = 0;
ui_fps(0.0);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.