I need to obtain the point in time (or difference from the epoch, and the epoch) in which the current process started. It has to be in high resolution - in micro-seconds (10^-6 seconds) at least. I'm basically interested in a Linux environment, although a general answer would be useful for other people I suppose.
I know that other programming languages (e.g. C#, Python) have certain facilities for this; from leafing through information about the standard libraries in C, it looks like they don't.
I also know that /proc/self/stat
has an uptime figure - but that's in jiffy, and a jiffy is a whole lot of time. Also, I would rather not need to start synchronizing the timing of different system/library calls (one for the uptime, another for the current time).
Note: A related question, start time of a process on linux, regards the start time in seconds, while I need something with much higher resolution.