Changeset: db448b455b6e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=db448b455b6e
Modified Files:
monetdb5/extras/crackers/crackers_select_ops.mx
monetdb5/extras/crackers/crackers_selectholpl_ops.mx
Branch: holindex
Log Message:
Print the time (BATcopy measurement) in milliseconds.
diffs (32 lines):
diff --git a/monetdb5/extras/crackers/crackers_select_ops.mx
b/monetdb5/extras/crackers/crackers_select_ops.mx
--- a/monetdb5/extras/crackers/crackers_select_ops.mx
+++ b/monetdb5/extras/crackers/crackers_select_ops.mx
@@ -83,6 +83,7 @@ crackers_export str CRKthetauselect_@1_M
#include "monetdb_config.h"
#include "crackers.h"
+#define dt(a,b) (b.tv_sec - a.tv_sec + (b.tv_usec - a.tv_usec) * 1e-6)
/*#define CRACK_DEBUG 1*/
/* Local support functions and macros */
@@ -941,7 +942,7 @@ CRKRangeLeftNilTree_@1(int *vid, int *bi
if ( bo->htype == TYPE_void)
b = BATmaterializeh(b);
gettimeofday(&tv1_copy, 0);
- fprintf(ofp_copy,"%9.6lf\n",dt(tv0_copy,tv1_copy));
+ fprintf(ofp_copy,"%d\n",(int)dt(tv0_copy,tv1_copy)*1000000);
b->hsorted = FALSE;
b->hrevsorted = FALSE;
diff --git a/monetdb5/extras/crackers/crackers_selectholpl_ops.mx
b/monetdb5/extras/crackers/crackers_selectholpl_ops.mx
--- a/monetdb5/extras/crackers/crackers_selectholpl_ops.mx
+++ b/monetdb5/extras/crackers/crackers_selectholpl_ops.mx
@@ -1416,7 +1416,7 @@ CRKRangeLeftNilTree_@1(int *vid, int *bi
if ( bo->htype == TYPE_void)
b = BATmaterializeh(b);
gettimeofday(&tv1_copy, 0);
- fprintf(ofp_copy,"%9.6lf\n",dt(tv0_copy,tv1_copy));
+ fprintf(ofp_copy,"%d\n",(int)dt(tv0_copy,tv1_copy)*1000000);
b->hsorted = FALSE;
b->tsorted = FALSE;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list