HI I have a class below which has functions to pull data from DataServices. I want to always call a method which prints a time at which the method was called and a method which prints time after the method was executed . Basically after every method is executed i want to know how much time it took to execute each method. Is there a generic way to do it instead of adding time at start and end of every function?
class ABC {
void getAllProducts(){
// some logic
}
void getAllClients(){
// some logic
}
void getAllSymbols(){
// some logic
}
}