NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Press Enter or click the Search button to begin your search.

Back to Results
The Creation of a CPU Timer for High Fidelity ProgramsUsing C and C++ programming languages, a tool was developed that measures the efficiency of a program by recording the amount of CPU time that various functions consume. By inserting the tool between lines of code in the program, one can receive a detailed report of the absolute and relative time consumption associated with each section. After adapting the generic tool for a high-fidelity launch vehicle simulation program called MAVERIC, the components of a frequently used function called "derivatives ( )" were measured. Out of the 34 sub-functions in "derivatives ( )", it was found that the top 8 sub-functions made up 83.1% of the total time spent. In order to decrease the overall run time of MAVERIC, a launch vehicle simulation program, a change was implemented in the sub-function "Event_Controller ( )". Reformatting "Event_Controller ( )" led to a 36.9% decrease in the total CPU time spent by that sub-function, and a 3.2% decrease in the total CPU time spent by the overarching function "derivatives ( )".
Document ID
20110015810
Acquisition Source
Marshall Space Flight Center
Document Type
Other
Authors
Dick, Aidan A.
(Minnesota Univ. MN, United States)
Date Acquired
August 25, 2013
Publication Date
August 5, 2011
Subject Category
Electronics And Electrical Engineering
Report/Patent Number
M11-0983
Report Number: M11-0983
Distribution Limits
Public
Copyright
Public Use Permitted.
No Preview Available