summaryrefslogtreecommitdiffstats
path: root/apps/plugins/test_mem.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-04-03 14:14:23 +0000
committerThomas Martitz <kugel@rockbox.org>2010-04-03 14:14:23 +0000
commitc4c45b3f9e0caf149a0ca34d18211965a2476ce6 (patch)
treebe031fb68bb8f99b17c11762eb5f994987d10bf8 /apps/plugins/test_mem.c
parent1cf1600b430c3f6c8954406e58490c6f73022f0f (diff)
downloadrockbox-c4c45b3f9e0caf149a0ca34d18211965a2476ce6.tar.gz
rockbox-c4c45b3f9e0caf149a0ca34d18211965a2476ce6.zip
Move delta calculation up so that only the loop time counts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25452 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/test_mem.c')
-rw-r--r--apps/plugins/test_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/test_mem.c b/apps/plugins/test_mem.c
index bd9c86a0a5..b38a454c33 100644
--- a/apps/plugins/test_mem.c
+++ b/apps/plugins/test_mem.c
@@ -51,11 +51,11 @@ enum plugin_status plugin_start(const void* parameter)
for (j = 0; j < BUF_SIZE; j++)
buf[j] = j;
}
+ delta = *rb->current_tick - last_tick;
rb->screens[0]->clear_display();
rb->screens[0]->putsf(0, line++, "%s", boost?"boosted":"unboosted");
rb->screens[0]->putsf(0, line++, "bufsize: %u", BUF_SIZE*sizeof(buf[0]));
rb->screens[0]->putsf(0, line++, "loop#: %d", ++count);
- delta = *rb->current_tick - last_tick;
rb->screens[0]->putsf(0, line++, "write ticks: %d (%d kB/s)", delta,
KB_PER_SEC(delta));
last_tick = *rb->current_tick;