summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorllucax <llucax>2008-01-18 18:15:01 +0000
committerllucax <llucax>2008-01-18 18:15:01 +0000
commit579d50f688ede8cb045cb67ae65c6bbd2f5cb6ff (patch)
tree7d5228179c821767063e3be3e0fb5e29731537b7
parentfeb32e0f9e58b4437caf5b9436328dc4f444f1e7 (diff)
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.
-rw-r--r--ev++.h5
1 files changed, 5 insertions, 0 deletions
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);