International Journal of Technology Enhancements and Emerging Engineering Research (ISSN 2347-4289)

IJTEEE >> Volume 2 - Issue 5, May 2014 Edition

International Journal of Technology Enhancements and Emerging Engineering Research  
International Journal of Technology Enhancements and Emerging Engineering Research

Website: http://www.ijteee.org

ISSN 2347-4289

Execution Of C++ Programs In Shortest Possible Time (Nanoseconds Or Milliseconds)

[Full Text]



Zaher Saif Al-Hashami



Keywords: Milliseconds, Nanoseconds, Comparison, preprocessor, #define, #include



ABSTRACT: Many programmers have multiple ways for programming in programming languages. Can reach the same result for a particular function works in a short time compared with the same function in another program to ensure access the result in a longer time. Difference between good and excellent programmers is reaching to the last result in short time and short way algorithm. In C++ programs could measure execution of some programs with Nanoseconds and Milliseconds. In this article loop and condition statements in C++ programming could measure them execution in little Nanoseconds or in Milliseconds. Comparison and approach between some programs algorithms are the method used in this paper. Time Execution taking of some C++ programs is depending on the algorithm of the program and statement time take. Preprocessor has role in speedup some Nanoseconds of execution of some C++ programs as compile time (convert to source code). These preprocessor statements like #define and #include preprocessor directives. There are many circumstances control the speed of some programs execution. Architecture of programming progress as well as hardware has role in speed of execution. The algorithm used in some C++ programs and execution of some functions is the topic of this article.



[1]. Ugur Halıcı, operating Systems, processing scheduling, 2007. Website: eee.metu.edu.tr/~halici/courses/442/Ch2%20Process%20Scheduling.pdf

[2]. Roberto Cipolla, Editing, Compiling and Executing a Simple Program, 2004. Website: eng.cam.ac.uk/help/languages/C++/C++_tutorial/editing.html

[3]. Prashant, Compiling and Linking in C++, 2013. cplusplus.com/articles/2v07M4Gy/

[4]. Howard Hinnant, Beman Dawes, Vicente J. Botet Escriba, Boost C++ libraries,2008-2009. boost.org/doc/libs/1_47_0/doc/html/chrono/users_guide.html

[5]. David B. Stewart, Measuring Execution Time and Real-time Performance, 2006. drdobbs.com/embedded-systems/measuring-execution-time-and-real-time-p/193502123