time.h
来自「一个语言识别引擎」· C头文件 代码 · 共 56 行
H
56 行
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
/*
* Copyright (C) 2006 Paul Fitzpatrick
* CopyPolicy: Released under the terms of the GNU GPL v2.0.
*
*/
#ifndef _YARP2_TIME_
#define _YARP2_TIME_
namespace yarp {
namespace os {
class Time;
}
}
/**
* \ingroup key_class
*
* Services related to time -- delay, current time.
*/
class yarp::os::Time {
public:
/**
* Wait for a certain number of seconds. This may be fractional.
* @param seconds the duration of the delay, in seconds
*/
static void delay(double seconds);
/**
* Return the current time in seconds, relative to an arbitrary
* starting point, using the best possible timer resolution.
* @return the system time in seconds
*/
static double now();
/**
* The calling thread releases its remaining quantum upon calling
* this function.
*/
static void yield();
/**
* For OS where it makes sense sets the scheduler to be called more often.
* This sets the scheduler to be run to the maximum possible rate based
* on the capability of the hardware.
* Specifically, on Microsoft Windows, high resolution scheduling is
* used.
*/
static void turboBoost();
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?