Exporting a function which will print simulation time in C Side