From: llucax Date: Fri, 18 Jan 2008 18:15:01 +0000 (+0000) Subject: Add missing ev_time () to ev namespace, but renamed as now (). X-Git-Url: https://git.llucax.com/software/libev.git/commitdiff_plain/579d50f688ede8cb045cb67ae65c6bbd2f5cb6ff?ds=inline 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. --- diff --git a/ev++.h b/ev++.h index aa90c37..889603a 100644 --- a/ev++.h +++ b/ev++.h @@ -497,6 +497,11 @@ namespace ev { } }; + inline tstamp now () + { + return ev_time (); + } + inline void delay (tstamp interval) { ev_sleep (interval);