e_main_ts() now returns the elapsed time since the last call

SVN revision: 74429
This commit is contained in:
Mike Blumenkrantz 2012-07-26 09:10:51 +00:00
parent 0f09ff1e46
commit bb711a6526
2 changed files with 3 additions and 2 deletions

View File

@ -227,7 +227,7 @@ typedef struct _E_Rect E_Rect;
EAPI E_Before_Idler *e_main_idler_before_add(int (*func) (void *data), void *data, int once);
EAPI void e_main_idler_before_del(E_Before_Idler *eb);
EAPI void e_main_ts(const char *str);
EAPI double e_main_ts(const char *str);
struct _E_Before_Idler
{

View File

@ -1154,10 +1154,11 @@ e_main_idler_before_del(E_Before_Idler *eb)
eb->delete_me = 1;
}
EAPI void
EAPI double
e_main_ts(const char *str)
{
TS(str);
return t1 - t2;
}
/* local functions */