getting time independent of system time in solaries

i am using function
gethrtime() in sun solaries
to get the time independent of the system time.Problem with this function is if we restart the system time will change to '0'.is there any other way to resolve this problem.

thanks & regards
suresh

Don't reboot or use NTP time to compute the HRT offset between reboots.

thaks for your kind informatiom.please provide some more information how to find offset between boots.

thanks & regards
suresh

Assuming the HR timer is reset at boot, "ntp time" - "hr time"="boot time".

Can you please clarify your requirement and goals ?