PERFORCE change 142865 for review

John Birrell jb at FreeBSD.org
Wed Jun 4 03:19:04 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=142865

Change 142865 by jb at freebsd3 on 2008/06/04 03:18:41

	CLOCK_UPTIME was implemented in FreeBSD 7.

Affected files ...

.. //depot/projects/dtrace6/src/sys/cddl/compat/opensolaris/sys/time.h#2 edit

Differences ...

==== //depot/projects/dtrace6/src/sys/cddl/compat/opensolaris/sys/time.h#2 (text+ko) ====

@@ -65,7 +65,7 @@
 
 static __inline hrtime_t gethrtime(void) {
 	struct timespec ts;
-	clock_gettime(CLOCK_UPTIME,&ts);
+	clock_gettime(CLOCK_MONOTONIC,&ts);
 	return (((u_int64_t) ts.tv_sec) * NANOSEC + ts.tv_nsec);
 }
 


More information about the p4-projects mailing list