Best Python code snippet using pytest-benchmark
ll_time.py
Source:ll_time.py
...92 if self.HAVE_GETTIMEOFDAY:93 t = lltype.malloc(self.TIMEVAL, flavor='raw')94 errcode = -195 if self.GETTIMEOFDAY_NO_TZ:96 errcode = c_gettimeofday(t)97 else:98 errcode = c_gettimeofday(t, void)99 if rffi.cast(rffi.LONG, errcode) == 0:100 result = decode_timeval(t)101 lltype.free(t, flavor='raw')102 if result != -1:103 return result104 if self.HAVE_FTIME:105 t = lltype.malloc(self.TIMEB, flavor='raw')106 c_ftime(t)107 result = (float(intmask(t.c_time)) +108 float(intmask(t.c_millitm)) * 0.001)109 lltype.free(t, flavor='raw')110 return result111 return float(c_time(void))112 return extdef([], float, llimpl=time_time_llimpl,...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!