From 579d50f688ede8cb045cb67ae65c6bbd2f5cb6ff Mon Sep 17 00:00:00 2001 From: llucax Date: Fri, 18 Jan 2008 18:15:01 +0000 Subject: [PATCH] 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. --- ev++.h | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.43.0