⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timer.h

📁 一个Windows下的Linux专用虚拟机
💻 H
字号:
/* * This source code is a part of coLinux source package. * * Dan Aloni <da-x@colinux.org>, 2003 (c) * * The code is licensed under the GPL. See the COPYING file at * the root directory. * */#ifndef __CO_OS_KERNEL_TIMER_H__#define __CO_OS_KERNEL_TIMER_H__#include <colinux/common/common.h>typedef struct co_os_timer *co_os_timer_t;typedef void (*co_os_func_t)(void *);extern co_rc_t co_os_timer_create(co_os_func_t func, void *data,				  long msec, co_os_timer_t *timer_out);extern co_rc_t co_os_timer_activate(co_os_timer_t timer);extern void co_os_timer_deactivate(co_os_timer_t timer);extern void co_os_timer_destroy(co_os_timer_t timer);typedef struct {	union {		struct {			unsigned long low;			unsigned long high;		};		unsigned long long quad;	};} co_timestamp_t;extern void co_os_get_timestamp(co_timestamp_t *dts);extern void co_os_get_timestamp_freq(co_timestamp_t *dts, co_timestamp_t *freq);extern unsigned long co_os_get_cpu_khz(void);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -