Browse Source

- added get_ticks

Andrei Pelinescu-Onciul 24 years ago
parent
commit
b902c38b52
2 changed files with 8 additions and 0 deletions
  1. 7 0
      timer.c
  2. 1 0
      timer.h

+ 7 - 0
timer.c

@@ -67,3 +67,10 @@ void timer_ticker()
 		}
 	}
 }
+
+
+
+unsigned int get_ticks()
+{
+	return jiffies;
+}

+ 1 - 0
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