What I want to do is access the query function in my database class form anther class. Evey time a query is done I track the time it takes and add the the query count, I want to do that for all query's.
The layout I have now is:
Global
-----------------------------
| |
database class application class
|
program class
When the database class starts it connect to the database and does some query's. The next time its needed is in the program class.
I need to keep the querycount and totaltime variables and add to them. I also would like a simple function call, I don't want to start the class for each program. It seams like there should be a way to call it at the application class level and be able to use the query function at the program level and to the connect and close at the global level.
I hope this makes sense, I know what I want but I have problems putting it into words...