Bug 897089 - [Clock] Utility methods pollute global scope r=ianliu

Organizing utility methods under a single namespace increases code
readability and minimizes global namespace pollution.