adding timing function with CFAbsoluteTimeGetCurrent()