Sad Clouds wrote: > uint64_t current_time; > while(1) > { > get_network_data(); > current_time = update_current_time(); > ... > use_current_time(); > } > > So in a tight loop, if update_current_time() calls clock_gettime() on > every loop iteration, what would kill performance.
How much execution time does update_current_time() take when compared to get_network_data()? You might also want to look into the SO_TIMESTAMP option. -- James Carlson 42.703N 71.076W <carls...@workingcode.com> _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code