code: def _colored_time(self, time_taken, color=None):
          
          if self.timer_no_color:
              return "{0:0.4f}s".format(time_taken)
  
          return _colorize("{0:0.4f}s".format(time_taken), color)
docs: Get formatted and colored string for a given time taken.