From 128733d165ded84cb7305161951a773955978b3e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 15 Dec 2007 20:04:15 +0000 Subject: Add -U option to enable logging microsecond timestamps --- infrastructure/buildenv-testmain-template.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'infrastructure') diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp index 5524c670..1a176c52 100644 --- a/infrastructure/buildenv-testmain-template.cpp +++ b/infrastructure/buildenv-testmain-template.cpp @@ -169,7 +169,7 @@ int main(int argc, char * const * argv) int ch; - while ((ch = getopt_long(argc, argv, "c:s:t:T", longopts, NULL)) + while ((ch = getopt_long(argc, argv, "c:s:t:TU", longopts, NULL)) != -1) { switch(ch) @@ -203,6 +203,13 @@ int main(int argc, char * const * argv) } break; + case 'U': + { + Console::SetShowTime(true); + Console::SetShowTimeMicros(true); + } + break; + case '?': { fprintf(stderr, "Unknown option: %s\n", -- cgit v1.2.3