PPI: Implement joins
[senf.git] / Scheduler / Scheduler.cci
index 028b372..1c1e7ef 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2006 
+// Copyright (C) 2006
 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
 //     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
@@ -36,6 +36,15 @@ prefix_ void senf::Scheduler::terminate()
     terminate_ = true;
 }
 
+prefix_ senf::Scheduler::sched_time senf::Scheduler::now()
+    const
+{
+    boost::posix_time::time_duration delta (
+        boost::posix_time::microsec_clock::universal_time() - epoch_);
+    return sched_time( delta.ticks() )
+        * sched_time( 1000000000UL / boost::posix_time::time_duration::ticks_per_second() );
+}
+
 prefix_ int senf::retrieve_filehandle(int fd)
 {
     return fd;
@@ -47,5 +56,10 @@ prefix_ int senf::retrieve_filehandle(int fd)
 \f
 // Local Variables:
 // mode: c++
+// fill-column: 100
 // c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
 // End: