How do I get the cur开发者_StackOverflow中文版rent process creation time using c/c++ on Linux? When I'm opening the file /proc//stat
The output is just a bunch of numbers. How do I know which one of them is the creation time?The manpage lists the order and meaning of the values of /proc/[pid]/stat. This answer more information.
I suggest you look into man 5 proc. On my system, the 22nd entry is the start time.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论