]> git.llucax.com Git - software/libev.git/commitdiff
Add missing ev_time () to ev namespace, but renamed as now ().
authorllucax <llucax>
Fri, 18 Jan 2008 18:15:01 +0000 (18:15 +0000)
committerllucax <llucax>
Fri, 18 Jan 2008 18:15:01 +0000 (18:15 +0000)
Note there is no colission with ev_now (), which is a member function of
loop_ref named in the C++ interface.

ev++.h

diff --git a/ev++.h b/ev++.h
index aa90c37c996a7a0a87df664d88c516d994f52d21..889603a7168d0509779157c31f1d12b468bbc184 100644 (file)
--- 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);