welcome: please sign in

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
What is the Admin password?

location: Develop / c_util / x_timing

void x_timing_(long long *nargs, void* pFun,...)

HEADER: source/include/timing.h

LIB: libc_util.a/libc_util.so

SOURCE source/c_util/timing.c

print timing consuming of function pFun

long long *nargs

Input, number of arguments pFun take.

void* pFun

Input, void function pFun with nargs arguments, all of the args should be pointers.

...

Input, following nargs pointer arguments.

= example (Fortran)=

extern:: dsygst
call x_timing(8,dsygst,1, 'l', ni, buff, ni, flmoinfo%coef(nc1:nc1+nn-1,1), ni,info)
write(*,*) "dsygst()"

its original form is

call dsygst(1, 'l', ni, buff, ni, flmoinfo%coef(nc1:nc1+nn-1,1), ni,info)