Direct costs are measured by tracking all expenses associated with the specific processes in histology. This can be done by maintaining detailed records of all purchases and labor hours dedicated to various histological tasks. Activity-based costing (ABC) is often used to allocate costs more accurately.