-
getting time independent of system time in SUN 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
-
What do you mean, "independent of the system time"?
Perhaps you are looking for the POSIX calls for gettimeofday, or timer_gettime.
-
gethrtime() is reset whenever the system is rebooted. You should probably use gettimeofday() as jonnin suggested. See also: http://www.devx.com/cplus/Article/35375/0
Danny Kalev
-
If you run across any of my old posts, the time stamp register is not safe on newer computers, at least the assembly I used to have does not work anymore. The cores on multi core processors do not match on the TSC and it seems to be unreliable in other ways now too, so don't go there!
Similar Threads
-
Replies: 1
Last Post: 03-29-2002, 10:10 PM
-
Replies: 1
Last Post: 01-16-2001, 02:54 PM
-
Replies: 0
Last Post: 12-05-2000, 08:19 AM
-
Replies: 6
Last Post: 08-15-2000, 05:23 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks