viml/profile: revert gettimeofday() #10488

e2ce5ff9d6 was proven to be bogus, so revert it.

close #10328
ref #10356
ref #10452
This commit is contained in:
Justin M. Keyes
2019-07-13 12:37:58 +02:00
committed by GitHub
parent e1fae8f1fe
commit 4013f67053
3 changed files with 25 additions and 34 deletions

View File

@@ -16563,7 +16563,7 @@ static void f_reltimefloat(typval_T *argvars , typval_T *rettv, FunPtr fptr)
rettv->v_type = VAR_FLOAT;
rettv->vval.v_float = 0;
if (list2proftime(&argvars[0], &tm) == OK) {
rettv->vval.v_float = ((float_T)tm) / 1000000;
rettv->vval.v_float = ((float_T)tm) / 1000000000;
}
}