Add missing ev_time () to ev namespace, but renamed as now ().

Note there is no colission with ev_now (), which is a member function of
loop_ref named in the C++ interface.
master
llucax 2008-01-18 18:15:01 +00:00
parent 8218239271
commit a836b93fee
1 changed files with 5 additions and 0 deletions

5
ev++.h
View File

@ -497,6 +497,11 @@ namespace ev {
}
};
inline tstamp now ()
{
return ev_time ();
}
inline void delay (tstamp interval)
{
ev_sleep (interval);