Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unit of time stamp in Gdb traces view
Unit of time stamp in Gdb traces view [message #1461398] Tue, 04 November 2014 14:19 Go to next message
jonathan ponroy is currently offline jonathan ponroyFriend
Messages: 12
Registered: April 2012
Junior Member
Hi,

anyone know what is the unit of time stamp in gdb traces view. (second, millisecond, other,...)

Thanks.
Re: Unit of time stamp in Gdb traces view [message #1461427 is a reply to message #1461398] Tue, 04 November 2014 14:54 Go to previous messageGo to next message
Marc Khouzam is currently offline Marc KhouzamFriend
Messages: 357
Registered: July 2009
Senior Member
They are in secs,millisecs. e.g, 888,999 means 888 seconds and 999 milliseconds.
Notice they are not a timestamp but more an indication to be compared between each other.

Marc
Re: Unit of time stamp in Gdb traces view [message #1463519 is a reply to message #1461427] Thu, 06 November 2014 16:49 Go to previous message
jonathan ponroy is currently offline jonathan ponroyFriend
Messages: 12
Registered: April 2012
Junior Member
You are right and as i see your answer only now, i had time to explore cdt code to find the answer Rolling Eyes.
The "time stamp" is gived by GdbPlugin.getDebugTime() and we have the same code in DsfPlugin.getDebugTime() but here with following comment :
       /**Returns a relative timestamp in the form "seconds,milliseconds". Each
	 * segment is zero-padded to three digits, ensuring a consistent length of
	 * seven characters. The timestamp has no absolute meaning. It is merely the
	 * elapsed time since January 1, 1970 UT truncated at 999 seconds. Do not
	 * use this for production code, especially for mathematically determining
	 * the relative time between two events, since the counter will flip to zero
	 * roughly every 16 minutes.
         */
Previous Topic:Problem with path of library
Next Topic:Newbie: configure compiler/add tool chain?
Goto Forum:
  


Current Time: Thu Oct 10 20:14:26 GMT 2024

Powered by FUDForum. Page generated in 0.03883 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top