이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
타이머
실시간 모델(rtModel
) 데이터 구조를 지원하는 시스템 타깃 파일은 절대 시간이나 경과 시간을 요청하는 블록에 대해 효율적인 시간 계산 서비스를 제공합니다. 절대 시간은 프로그램 실행이 시작된 순간부터 절대 시간을 사용하는 블록에 대한 코드가 포함된 함수가 실행을 시작하는 순간까지의 시간 간격입니다. 경과 시간은 한 블록의 두 연속된 실행 간의 시간 간격입니다. 코드 생성기가 타이머를 표현하고 사용하는 방법에 대한 자세한 내용은 Timer Representation and Computation 항목을 참조하십시오.
도움말 항목
- Timer Representation and Computation
Representation of timers in models and generated code.
- Generate Code for Elapsed Time Counter
Generate code for an elapsed time counter.
- Optimize Memory Usage and Prevent Overflows for Time Counters
You can optimize the amount of memory that the code generator allocates for time counters and prevent time counter overflows.
- Optimize Memory Usage for Time Counters
Optimize memory that the code generator allocates for an elapsed time counter.
- Access Timers Programmatically
Gain access to timers to use in S-functions for simulation and code generation.
- Specify Clock Resolution Used by Target Environment Clock
How to specify the clock resolution that is used by a target environment clock.