How I can use net.PrintProfilerTimes() in string

how can I pass the net.PrintProfilerTimes () function to string

Hi ajortiz4, you could call net.GetNetworkTime() and format it into your own string.

Or if you want the exact output from net.PrintProfilerTimes(), you could redirect stdout to a string like here: https://stackoverflow.com/a/1218951