RMVL  2.3.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到

定时器 更多...

#include <rmvl/core/timer.hpp>

rm::Timer 的协作图:

Public 成员函数

 Timer ()
 

静态 Public 成员函数

static void reset ()
 重置定时器
 
static double now ()
 返回从构造初期到现在经过的时间(单位:ms)
 
static void sleep_for (double t)
 当前线程休眠指定时间
 
static void sleep_until (double t)
 当前线程休眠至指定时间
 

详细描述

定时器

  • 在程序开始时调用 reset() 函数,之后调用 now() 函数即可返回从构造初期到现在经过的时间

构造及析构函数说明

◆ Timer()

rm::Timer::Timer ( )
inline
Python:
rm.Timer() -> <Timer object>
函数调用图:

成员函数说明

◆ now()

static double rm::Timer::now ( )
static
Python:
rm.Timer.now() -> <Current Time>

返回从构造初期到现在经过的时间(单位:ms)

◆ reset()

static void rm::Timer::reset ( )
static
Python:
rm.Timer.reset() -> None

重置定时器

◆ sleep_for()

◆ sleep_until()

static void rm::Timer::sleep_until ( double t)
static

当前线程休眠至指定时间

参数
[in]t时间点(单位:ms)

该类的文档由以下文件生成: