*
* Copyright (c) Tuomo Valkonen 1999-2007.
*
- * Ion is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
*/
#include <math.h>
struct timeval tv;
long adiff, udiff;
- gettimeofday(&tv, NULL);
+ if(mainloop_gettime(&tv)!=0)
+ return;
adiff=tvdiffmsec(&tv, &last_action_tv);
udiff=tvdiffmsec(&tv, &last_update_tv);