fastest way to get time of the day on Solaris (C/C++)