Visual Servoing Platform
version 3.6.1 under development (2024-12-06)
|
Functions | |
VISP_EXPORT std::string | getDateTime (const std::string &format="%Y/%m/%d %H:%M:%S") |
VISP_EXPORT double | getMinTimeForUsleepCall () |
VISP_EXPORT double | measureTimeSecond () |
VISP_EXPORT double | measureTimeMs () |
VISP_EXPORT double | measureTimeMicros () |
VISP_EXPORT void | sleepMs (double t) |
VISP_EXPORT int | wait (double t0, double t) |
VISP_EXPORT void | wait (double t) |
Time management and measurement.
The example below shows how to synchronize a loop to a given framerate.
VISP_EXPORT std::string vpTime::getDateTime | ( | const std::string & | format = "%Y/%m/%d %H:%M:%S" | ) |
VISP_EXPORT double vpTime::getMinTimeForUsleepCall | ( | ) |
VISP_EXPORT double vpTime::measureTimeMicros | ( | ) |
vpTime::measureTimeMs | ( | ) |
Return the time in milliseconds since January 1st 1970.
Referenced by vpKeyPoint::computePose(), vpKeyPoint::detect(), vpKeyPoint::extract(), vpKeyPoint::match(), vpQbSoftHand::setPosition(), vpChrono::start(), vpChrono::stop(), ClassUsingPclViewer::threadedMode(), and vpForceTorqueAtiNetFTSensor::waitForNewData().
VISP_EXPORT double vpTime::measureTimeSecond | ( | ) |
VISP_EXPORT void vpTime::sleepMs | ( | double | t | ) |
Referenced by vpForceTorqueIitSensor::connected(), vpRobotBebop2::doFlatTrim(), vpPlot::navigate(), vpRobotBebop2::resetAllSettings(), vpRobotBebop2::setCameraOrientation(), vpRobotBebop2::setCameraPan(), vpRobotBebop2::setCameraTilt(), vpRobotBebop2::setExposure(), vpRobotBebop2::setPosition(), vpRobotViper650::setRobotState(), vpRobotViper850::setRobotState(), vpRobotBebop2::setStreamingMode(), vpRobotBebop2::setVideoResolution(), vpRobotBebop2::startStreaming(), vpRobotBebop2::stopStreaming(), vpRobotBebop2::takeOff(), and vpForceTorqueAtiNetFTSensor::waitForNewData().
VISP_EXPORT void vpTime::wait | ( | double | t | ) |
VISP_EXPORT int vpTime::wait | ( | double | t0, |
double | t | ||
) |
Referenced by vpRobotViper850::biasForceTorqueSensor(), vpRobotViper650::biasForceTorqueSensor(), vpTemplateTrackerZone::initClick(), vpSimulator::initMainApplication(), vpPylonGrabberGigE::loadUserSet(), vpPylonGrabberUsb::loadUserSet(), vpSimulator::mainLoop(), vp1394TwoGrabber::resetBus(), vpPylonGrabberGigE::saveUserSet(), vpPylonGrabberUsb::saveUserSet(), vpFlyCaptureGrabber::setCameraPower(), vpQbSoftHand::setPosition(), vpRobotBiclops::setRobotState(), vpForceTorqueIitSensor::startStreaming(), ClassUsingPclViewer::threadedMode(), and vpRobotBiclops::vpRobotBiclopsSpeedControlLoop().