- added get_ticks
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Thu, 6 Dec 2001 18:32:54 +0000 (18:32 +0000)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Thu, 6 Dec 2001 18:32:54 +0000 (18:32 +0000)
timer.c
timer.h

diff --git a/timer.c b/timer.c
index e8b6121..097cdeb 100644 (file)
--- a/timer.c
+++ b/timer.c
@@ -67,3 +67,10 @@ void timer_ticker()
                }
        }
 }
+
+
+
+unsigned int get_ticks()
+{
+       return jiffies;
+}
diff --git a/timer.h b/timer.h
index aeaaa56..1953395 100644 (file)
--- a/timer.h
+++ b/timer.h
@@ -32,6 +32,7 @@ extern struct sr_timer* timer_list;
 /*register a periodic timer;
  * ret: <0 on errror*/
 int register_timer(timer_function f, void* param, unsigned int interval);
+unsigned int get_ticks();
 void timer_ticker();
 
 #endif