Skip to Main Content Skip to Search
Product Documentation

xpcGetElapsedTime - Return time since system boot

Prototype

real_T xpcGetElapsedTime(xpcTime *upTime)

Arguments

upTime

Pointer to an xpcTime structure.

Description

The xpcGetElapsedTime function returns the time since the system was last booted, in seconds. You can get this time in nanoseconds by passing a pointer to a previously allocated xpcTime structure. You can pass a NULL pointer for the upTime argument if you do not want the time in nanoseconds.

See Also

xpcTime, xpcSubtractTime

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS