diff options
author | Zack Rusin <zack@ppc64.localdomain> | 2006-03-16 16:26:34 -0500 |
---|---|---|
committer | Zack Rusin <zack@ppc64.localdomain> | 2006-03-16 16:26:34 -0500 |
commit | 4a808117dc21de9c94418912666405f8cfb3754e (patch) | |
tree | c10b11343b264ee7ec310e54e8812f74fed1086d | |
parent | 8935f9e950ee7ce04759252500b8ad82690db865 (diff) |
nicer output
-rw-r--r-- | utils.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -21,6 +21,9 @@ extern int win_h; extern Display *disp; extern Window win; +static const char *const FILLER = +"......................................................................"; + double get_time(void) { @@ -37,7 +40,10 @@ time_test(char *description, void (*func) (void)) double t1, t2, t; int i; - printf("Test: %s\t\t\t\t\t", description); + char buf[51]; + snprintf(buf, 50, "%s%s", description, FILLER); + + printf("Test: %s", buf); t1 = get_time(); for (i = 0; i < REPS; ++i) func(); |