eqemu
diff src/timer.cc @ 7:e9ab4861536d
added glow
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 18 Jul 2014 04:24:53 +0300 |
parents | 48dce4ee4850 |
children | 2656099aff12 |
line diff
1.1 --- a/src/timer.cc Fri Jul 18 02:35:06 2014 +0300 1.2 +++ b/src/timer.cc Fri Jul 18 04:24:53 2014 +0300 1.3 @@ -13,3 +13,8 @@ 1.4 } 1.5 return (tv.tv_sec - tv0.tv_sec) * 1000 + (tv.tv_usec - tv0.tv_usec) / 1000; 1.6 } 1.7 + 1.8 +void wait_for(unsigned long msec) 1.9 +{ 1.10 + usleep(msec * 1000); 1.11 +}