EV3RT C++ API Reference  Version 1.0
An RTOS-based development platform for LEGO Mindstorms EV3.
Clock クラス

#include <Clock.h>

公開メンバ関数

 Clock (void)
 
void reset (void)
 
uint64_t now (void) const
 
void wait (uint64_t duration)
 
void sleep (uint64_t duration)
 

静的限定公開メンバ関数

static uint64_t getTim ()
 

詳解

EV3 クロッククラス

構築子と解体子

◆ Clock()

Clock ( void  )

コンストラクタ 開始時間をシステム時刻で初期化する

引数
-
戻り値
-

関数詳解

◆ getTim()

static uint64_t getTim ( )
staticprotected

システム時刻取得

引数
-
戻り値
現在のシステム時刻[usec]

◆ now()

uint64_t now ( void  ) const

経過時間取得 開始時間からの経過時間を取得する

引数
-
戻り値
経過時間[usec]

◆ reset()

void reset ( void  )

リセット 開始時間を現在のシステム時刻でリセットする

引数
-
戻り値
-

◆ sleep()

void sleep ( uint64_t  duration)
inline

自タスクスリープ

引数
durationスリープ時間[usec]
戻り値
-

◆ wait()

void wait ( uint64_t  duration)
inline

自タスク遅延

引数
duration遅延時間[usec]
戻り値
-

このクラス詳解は次のファイルから抽出されました: