Importing time consuming functions from C to SV

Hi I am having C function which consumes time. How I can import it to SV?

Thanks,
Shreyas

You should refer to Chapter 35 of the SystemVerilog LRM which describes how to use the DPI to import C-based tasks.

You may want to read Starting with DPI

Thanks.
I will check this links