Okay so I would like to do some time stamping down to uS ... mS would be okay too ... but in looking into this, I am thinking What are the BEST PRACTICES when doing time stamping? My assumptions in this case are that C/C++ code is being used. I know internal clocks have various resolutions and the like ... but I am interested in things to be mindful about ... such answers will help with what I might not already know.
What should a good time format look like? What are your thoughts on Posix time functions? I want to have a textural representation and an internal representation? What is the easiest way to do this so times can be easily added and subtracted?