From c70842ac0bf49fcafeff5694bf1de6f7a0253588 Mon Sep 17 00:00:00 2001 From: James Tauber Date: Mon, 15 Aug 2011 23:43:02 -0400 Subject: [PATCH] use carriage return to put cycles per second on same line (and round) --- applepy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applepy.py b/applepy.py index 0fd8a0d..e6c4359 100644 --- a/applepy.py +++ b/applepy.py @@ -386,7 +386,7 @@ class Apple2: if self.speaker: self.speaker.update(cycle) update_cycle = 0 - print (cycle - last_update_cycle_cycles) / (time.time() - last_update_cycle_time) + print "%d\r" % ((cycle - last_update_cycle_cycles) / (time.time() - last_update_cycle_time)), last_update_cycle_time = time.time() last_update_cycle_cycles = cycle