[Box Backup-commit] COMMIT r2002 - box/trunk/infrastructure

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Dec 15 20:04:15 GMT 2007


Author: chris
Date: 2007-12-15 20:04:15 +0000 (Sat, 15 Dec 2007)
New Revision: 2002

Modified:
   box/trunk/infrastructure/buildenv-testmain-template.cpp
Log:
Add -U option to enable logging microsecond timestamps


Modified: box/trunk/infrastructure/buildenv-testmain-template.cpp
===================================================================
--- box/trunk/infrastructure/buildenv-testmain-template.cpp	2007-12-15 20:03:50 UTC (rev 2001)
+++ box/trunk/infrastructure/buildenv-testmain-template.cpp	2007-12-15 20:04:15 UTC (rev 2002)
@@ -169,7 +169,7 @@
 	
 	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 @@
 			}
 			break;
 
+			case 'U':
+			{
+				Console::SetShowTime(true);
+				Console::SetShowTimeMicros(true);
+			}
+			break;
+
 			case '?':
 			{
 				fprintf(stderr, "Unknown option: %s\n",




More information about the Boxbackup-commit mailing list