aboutsummaryrefslogtreecommitdiff
path: root/src/core/scheduler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/scheduler.c')
-rw-r--r--src/core/scheduler.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core/scheduler.c b/src/core/scheduler.c
index e69de29..0f2b724 100644
--- a/src/core/scheduler.c
+++ b/src/core/scheduler.c
@@ -0,0 +1,20 @@
+#include "libc/stdio.h"
+
+char show_tics=0;
+
+void schedule(){
+
+}
+
+void clock(){
+ static int tic=0;
+ static int sec=0;
+ tic++;
+ if(tic>=20){
+ tic=0;
+ sec++;
+ if(show_tics)
+ putchar('.');
+ }
+ schedule();
+} \ No newline at end of file