From 572721143ae46d9a1b9a3b4119fdca481b963a20 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 24 Jan 2021 14:58:20 +0100 Subject: Add "make cat" target (includes cycle to ms conversion) --- src/app/countertest/main.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/app') diff --git a/src/app/countertest/main.cc b/src/app/countertest/main.cc index cf3a136..e0a7394 100644 --- a/src/app/countertest/main.cc +++ b/src/app/countertest/main.cc @@ -12,47 +12,47 @@ void loop(void) { counter.start(); counter.stop(); - kout << "nop: " << counter.value << "/" << counter.overflow << endl; + kout << "nop: " << counter.value << "/" << counter.overflow << " cycles" << endl; counter.start(); arch.delay_us(10); counter.stop(); - kout << "10us: " << counter.value << "/" << counter.overflow << endl; + kout << "10us: " << counter.value << "/" << counter.overflow << " cycles" << endl; counter.start(); arch.delay_us(20); counter.stop(); - kout << "20us: " << counter.value << "/" << counter.overflow << endl; + kout << "20us: " << counter.value << "/" << counter.overflow << " cycles" << endl; counter.start(); arch.delay_ms(1); counter.stop(); - kout << "1ms: " << counter.value << "/" << counter.overflow << endl; + kout << "1ms: " << counter.value << "/" << counter.overflow << " cycles" << endl; counter.start(); arch.delay_ms(2); counter.stop(); - kout << "2ms: " << counter.value << "/" << counter.overflow << endl; + kout << "2ms: " << counter.value << "/" << counter.overflow << " cycles" << endl; counter.start(); arch.delay_ms(4); counter.stop(); - kout << "4ms: " << counter.value << "/" << counter.overflow << endl; + kout << "4ms: " << counter.value << "/" << counter.overflow << " cycles" << endl; counter.start(); arch.delay_ms(8); counter.stop(); - kout << "8ms: " << counter.value << "/" << counter.overflow << endl; + kout << "8ms: " << counter.value << "/" << counter.overflow << " cycles" << endl; counter.start(); arch.delay_ms(16); counter.stop(); - kout << "16ms: " << counter.value << "/" << counter.overflow << endl; + kout << "16ms: " << counter.value << "/" << counter.overflow << " cycles" << endl; counter.start(); arch.delay_ms(32); counter.stop(); - kout << "32ms: " << counter.value << "/" << counter.overflow << endl; + kout << "32ms: " << counter.value << "/" << counter.overflow << " cycles" << endl; } int main(void) -- cgit v1.2.3