Use ecore timer instead of usleep