For the programming parts of the homework assignments, please e-mail the source code and a makefile (if there are multiple source code files) to the grader.
/usr/local/packages/ptolemy0.7.1/src/kernel/ProfileTimer.cc
/usr/local/packages/ptolemy0.7.1/src/kernel/ProfileTimer.h
This class relies on include files from the directory /usr/local/packages/ptolemy0.7.1/src/compat/ptolemy
The gethrtime() function returns the current high-resolution real time. Time is expressed as nanoseconds since some arbitrary time in the past; it is not correlated in any way to the time of day, and thus is not subject to resetting or drifting by way of adjtime(2) or settimeofday(3C). The hi-res timer is ideally suited to performance measurement tasks, heap, accurate interval timing is required.
time
would provide a crude
way to time to overall execution of the programs.