def METHOD_NAME(self, operation, prefix=''):
    msg = "[profiler] %s%s : %s seconds (%s minutes)" % (prefix, operation, self.duration, self.duration / 60.0)
    if self.ENABLED:
        logger.info(colors.cyan(msg))
    if self.LOGFILE:
        with open(self.LOGFILE, "a") as f:
            f.write(msg + "\n")