Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7944 Discussions

Getting process start time in C/C++ program

alexvi
Beginner
653 Views
Hi,

Linux 2.6.18-92.el5

icpc -v
Version 11.0


Is there any way to get process start time in C/C++ program?


Thanks,


Alex Vinokur


0 Kudos
2 Replies
JenniferJ
Moderator
653 Views
I googled and found this GetProcessTimes(). Does it work for you?

Jennifer
0 Kudos
TimP
Honored Contributor III
653 Views
I googled and found this GetProcessTimes(). Does it work for you?

Jennifer
I don't expect to find exact equivalents of Windows system calls on linux. My other simplistic guess would be one of the standard C date functions would work.
0 Kudos
Reply