Changeset: 9fdaab776c3b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9fdaab776c3b
Modified Files:
sql/backends/monet5/datacell/basket.c
Branch: Aug2011
Log Message:
datacell: provide (missing) implementation of usec
diffs (33 lines):
diff --git a/sql/backends/monet5/datacell/basket.c
b/sql/backends/monet5/datacell/basket.c
--- a/sql/backends/monet5/datacell/basket.c
+++ b/sql/backends/monet5/datacell/basket.c
@@ -56,20 +56,19 @@
#define lockBSKTbasketCatalog() mal_set_lock(bsktLock, "basket");
#define unlockBSKTbasketCatalog() mal_unset_lock(bsktLock, "basket");
-/*
- * @-
- * We have to obtain the precise wall-clock time
+/* We have to obtain the precise wall-clock time
* This is not produced by GDKusec, which returns microseconds
* since the start of the program.
* Notice that this routine consumes noticable time.
- * lng usec(void)
- * {
- * struct timeval tp;
- *
- * gettimeofday(&tp, NULL);
- * return ((lng)tp.tv_sec) * LL_CONSTANT(1000000) + (lng)tp.tv_usec;
- * }
*/
+lng usec(void)
+{
+ struct timeval tp;
+
+ gettimeofday(&tp, NULL);
+ return ((lng)tp.tv_sec) * LL_CONSTANT(1000000) + (lng)tp.tv_usec;
+}
+
/* assume BUFSIZ buffer space */
void
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list