UML profile for schedulability, performance and time is designed to add standard real-time extensions to UML in order to facilitate real-time analysis capabilities, such as rate monotonic analysis, based on the profile. In this paper we explore issues involved in generating code for the OSEK API, which is a popular real-time operating systems standard in the automotive industry.