Documentation

xPCGetExecTime

Return real-time application execution time

Prototype

double xPCGetExecTime(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Return

Returns the current execution time for a real-time application. If the function detects an error, it returns -1.

Description

The xPCGetExecTime function returns the current execution time for the running real-time application. If the real-time application is stopped, the value is the last running time when the application was stopped. If the real-time application is running, the value is the current running time.

Introduced before R2006a

Was this topic helpful?