How to correctly align top

I wanna align Time str and seconds based on the top line. What is the best way? Now I am using 


var timeStrDemension = dc.getTextDimensions(timeStr, 6);
var fh = Graphics.getFontAscent(6);

var secondX = hfWidth + timeStrDemension[0] / 2 + layout[26];
var secondY = timeY - fh / 2 - layout[26] * 2;
dc.drawText(secondX,secondY, 1, seconds, Graphics.TEXT_ALIGIN_LEFT);