How can I keep track of how long my program executed a certain instruction in, for example, if one were to measure the diskusage, that would take time, and at the end my program should give an oupit along the lines of
real=50.0s user=30.s sys=20.0s
How do I distinguish and gather the system time, and the actual command time?