Fix compiletest to use Duration