// Since autoCreateAccountant is set to true in the service accountant
// manager, all service accountants will be created during this method call.
performOperations(companyService, userService, inventoryService, creativeService);
// Get the CompanyService ServiceAccountant.
ServiceAccountant companyServiceAccountant =
serviceAccountantManager.getServiceAccountant(companyService);
// Get the UserService ServiceAccountant.
ServiceAccountant userServiceAccountant =
serviceAccountantManager.getServiceAccountant(userService);
// Get the InventoryService ServiceAccountant.
ServiceAccountant inventoryServiceAccountant =
serviceAccountantManager.getServiceAccountant(inventoryService);
// Get the CreativeService ServiceAccountant.
ServiceAccountant creativeServiceAccountant =
serviceAccountantManager.getServiceAccountant(creativeService);
// Retrieve the total response time for each service object we used.
System.out.println("CampaignService used "
+ companyServiceAccountant.getTotalResponseTime() + " millisecond(s).");
System.out.println("UserService used "
+ userServiceAccountant.getTotalResponseTime() + " millisecond(s).");
System.out.println("InventoryService used "
+ inventoryServiceAccountant.getTotalResponseTime() + " millisecond(s).");
System.out.println("CreativeService used "
+ creativeServiceAccountant.getTotalResponseTime() + " millisecond(s).");
// Retrieve the total amounts using the ServiceAccountantManager.
System.out.println("There were " + ServiceAccountantManager.getInstance().getTotalResponseTime()
+ " millisecond(s) used all together.");
System.out.println("There were "