📄 _timer.h
字号:
/********************************************************************* Description: _timer.h* timer.cc -- interval timer code. A TIMER object lets you wait* on the expiration of a cyclic period, to the resolution of the* system clock.** Derived from a work by Fred Proctor & Will Shackleford** Author:* License: LGPL Version 2* System: Linux* * Copyright (c) 2004 All rights reserved.** Last change: * $Revision: 1.4 $* $Author: paul_c $* $Date: 2005/05/23 16:34:16 $********************************************************************/#ifndef _TIMER_H#define _TIMER_H/* Useful time routines */#ifdef __cplusplusextern "C" {#endif/* clock tick resolution, in seconds */ extern double clk_tck(void);/* number of seconds from standard epoch, to clock tick resolution */ extern double etime(void);/* sleeps # of seconds, to clock tick resolution */ extern void esleep(double secs); void start_timer_server(int priority, int sem_id); void kill_timer_server(void); extern void print_etime(void);#ifdef __cplusplus}#endifextern int etime_disabled;extern double etime_disable_time;extern int esleep_use_yield;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -