aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-22 19:16:29 -0700
committerChristian Cunningham <cc@localhost>2022-03-22 19:16:29 -0700
commit43f236af3a8ac12c005a53d92cc03e87c402b316 (patch)
tree706219046fa53fdcbbcdcb379c9b4cb212371ff6 /src
parent4e1880672f38ceb600c7dc7d3179dbb9f11f792d (diff)
Testing Semaphore
Diffstat (limited to 'src')
-rw-r--r--src/tests/test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/test.c b/src/tests/test.c
index 1c44a82..c3e5c83 100644
--- a/src/tests/test.c
+++ b/src/tests/test.c
@@ -325,12 +325,12 @@ void test_entry(void)
dt = 0;
for(int i = 0; i < TEST_COUNT; i++) {
sem = 1;
- //sys0_32(SYS_TIME_2, &tf);
+ sys0_32(SYS_TIME_2, &tf);
sys1(SYS_SEMAPHORE_V, &sem);
- //sys0_32(SYS_TIME_2, &ti);
- //dt += tf - ti;
- //if ((tf-ti) < TEST_BIN_COUNT)
- // bins[(tf-ti)]++;
+ sys0_32(SYS_TIME_2, &ti);
+ dt += tf - ti;
+ if ((tf-ti) < TEST_BIN_COUNT)
+ bins[(tf-ti)]++;
}
for (int i = 0; i < TEST_BIN_COUNT; i++) {
draw_hex32(tidx, y+6+i, i);