Add clock() to external library