Timing functions within your application

Most programming languages have a library function for the time of day. If you have access to the source code, you can insert pairs of calls to this function to measure the elapsed time between specific actions.


For example, if the application is written in IBM® Informix® ESQL/C, you can use the dtcurrent() function to obtain the current time. To measure response time, you can call dtcurrent() to report the time at the start of a transaction and again to report the time when the transaction commits.

Elapsed time, in a multiprogramming system or network environment where resources are shared among multiple processes, does not always correspond to execution time. Most operating systems and C libraries contain functions that return the CPU time of a program.

Copyright© 2018 HCL Technologies Limited