Fixed timing fun wrapper to return the fun's return value.