> I'd love to hear suggestions *because* I do have code > that I'd like to see > run on both Solaris and Linux which reports fine > grained timing information > with some degree of accuracy.
gethrtime() is available on Linux if you install the RTLinux extension to the kernel. The easiest way to do this is to get a prepatched kernel... but you could also do cd /usr/src/linux/ && make menuconfig Basically you'll have to recompile the kernel with the RT extension. Then you'll be able to do: ifdef Linux #include <rtl_time.h> endif Yuck. This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list [email protected]
