attempt to use clocktime. allow build without stdc99 flag