private function drawTiming($time) { $driver = $this->getDriver(); $label = new awLabel(); $label->set("(" . sprintf("%.3f", $time) . " s)"); $label->setAlign(awLabel::LEFT, awLabel::TOP); $label->border->show(); $label->setPadding(1, 0, 0, 0); $label->setBackgroundColor(new awColor(230, 230, 230, 25)); $label->draw($driver, new awPoint(5, $driver->imageHeight - 5)); }
function drawTiming($time) { $drawer = $this->getDrawer(); $label = new awLabel; $label->set("(".sprintf("%.3f", $time)." s)"); $label->setAlign(LABEL_LEFT, LABEL_TOP); $label->border->show(); $label->setPadding(1, 0, 0, 0); $label->setBackgroundColor(new awColor(230, 230, 230, 25)); $label->draw($drawer, new awPoint(5, $drawer->height - 5)); }