summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-12-15 20:04:15 +0000
committerChris Wilson <chris+github@qwirx.com>2007-12-15 20:04:15 +0000
commit128733d165ded84cb7305161951a773955978b3e (patch)
tree94ebf1e5ddc009f331816aa088b38fd49c03aa40
parentccc0bce45b99b3fcc73b4c217ef6c2088abde4dd (diff)
Add -U option to enable logging microsecond timestamps
-rw-r--r--infrastructure/buildenv-testmain-template.cpp9
1 files changed, 8 insertions, 1 deletions
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",