mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
2007-08-08 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-main.c (clutter_get_timestamp): Remove the microseconds remainder, which is mostly useless. (#447)
This commit is contained in:
parent
1639b7d0b8
commit
705f47783a
@ -1,3 +1,8 @@
|
||||
2007-08-08 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-main.c (clutter_get_timestamp): Remove
|
||||
the microseconds remainder, which is mostly useless. (#447)
|
||||
|
||||
2007-08-08 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-main.c (clutter_get_timestamp): Return the
|
||||
|
@ -671,14 +671,13 @@ clutter_get_timestamp (void)
|
||||
#ifdef CLUTTER_ENABLE_DEBUG
|
||||
ClutterMainContext *ctx;
|
||||
gdouble seconds;
|
||||
gulong msecs;
|
||||
|
||||
ctx = clutter_context_get_default ();
|
||||
|
||||
/* FIXME: may need a custom timer for embedded setups */
|
||||
seconds = g_timer_elapsed (ctx->timer, &msecs);
|
||||
seconds = g_timer_elapsed (ctx->timer, NULL);
|
||||
|
||||
return (gulong)(seconds / 1.0e-6) + msecs;
|
||||
return (gulong)(seconds / 1.0e-6);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user