亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? timer.c

?? 最新版FreeRTOS, 包擴多種開發平臺的移植
?? C
字號:
/**
 * \addtogroup timer
 * @{
 */

/**
 * \file
 * Timer library implementation.
 * \author
 * Adam Dunkels <adam@sics.se>
 */

/*
 * Copyright (c) 2004, Swedish Institute of Computer Science.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the Institute nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 * This file is part of the uIP TCP/IP stack
 *
 * Author: Adam Dunkels <adam@sics.se>
 *
 * $Id: timer.c,v 1.2 2006/06/12 08:00:30 adam Exp $
 */

#include "clock.h"
#include "timer.h"

/*---------------------------------------------------------------------------*/
/**
 * Set a timer.
 *
 * This function is used to set a timer for a time sometime in the
 * future. The function timer_expired() will evaluate to true after
 * the timer has expired.
 *
 * \param t A pointer to the timer
 * \param interval The interval before the timer expires.
 *
 */
void
timer_set(struct timer *t, clock_time_t interval)
{
  t->interval = interval;
  t->start = clock_time();
}
/*---------------------------------------------------------------------------*/
/**
 * Reset the timer with the same interval.
 *
 * This function resets the timer with the same interval that was
 * given to the timer_set() function. The start point of the interval
 * is the exact time that the timer last expired. Therefore, this
 * function will cause the timer to be stable over time, unlike the
 * timer_rester() function.
 *
 * \param t A pointer to the timer.
 *
 * \sa timer_restart()
 */
void
timer_reset(struct timer *t)
{
  t->start += t->interval;
}
/*---------------------------------------------------------------------------*/
/**
 * Restart the timer from the current point in time
 *
 * This function restarts a timer with the same interval that was
 * given to the timer_set() function. The timer will start at the
 * current time.
 *
 * \note A periodic timer will drift if this function is used to reset
 * it. For preioric timers, use the timer_reset() function instead.
 *
 * \param t A pointer to the timer.
 *
 * \sa timer_reset()
 */
void
timer_restart(struct timer *t)
{
  t->start = clock_time();
}
/*---------------------------------------------------------------------------*/
/**
 * Check if a timer has expired.
 *
 * This function tests if a timer has expired and returns true or
 * false depending on its status.
 *
 * \param t A pointer to the timer
 *
 * \return Non-zero if the timer has expired, zero otherwise.
 *
 */
int
timer_expired(struct timer *t)
{
  return (clock_time_t)(clock_time() - t->start) >= (clock_time_t)t->interval;
}
/*---------------------------------------------------------------------------*/

/** @} */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区和二区| 粉嫩一区二区三区在线看| 亚洲二区视频在线| 日韩av电影免费观看高清完整版在线观看| 亚洲成av人综合在线观看| 看片的网站亚洲| 国产成人综合视频| 色综合色综合色综合色综合色综合| 在线观看免费视频综合| 91精品麻豆日日躁夜夜躁| 久久久综合九色合综国产精品| 中文字幕精品一区二区三区精品| 亚洲欧美日韩综合aⅴ视频| 亚洲18女电影在线观看| 国内精品在线播放| 91毛片在线观看| 91精品国产一区二区| 国产欧美日韩综合| 一区二区三区欧美| 激情综合网激情| 色综合中文综合网| 欧美aaa在线| 丁香激情综合五月| 精品视频免费看| 国产偷国产偷精品高清尤物| 亚洲亚洲精品在线观看| 国内精品自线一区二区三区视频| 91丨九色porny丨蝌蚪| 欧美一级电影网站| 亚洲人成7777| 精品一区二区av| 色婷婷国产精品| 欧美精品一区二区在线观看| 亚洲精品欧美二区三区中文字幕| 韩国视频一区二区| 精品视频在线免费观看| 国产精品素人一区二区| 日韩极品在线观看| 99精品欧美一区二区三区小说 | 夜夜嗨av一区二区三区中文字幕 | 国产欧美一区二区三区网站| 亚洲第一久久影院| 成人免费视频国产在线观看| 日韩亚洲欧美综合| 玉米视频成人免费看| 国产精品一区二区不卡| 欧美一级艳片视频免费观看| 亚洲日本在线看| 国产成人在线视频网站| 欧美一区二区三区日韩视频| 又紧又大又爽精品一区二区| 成人性视频免费网站| 日韩精品一区二区三区蜜臀 | 日韩一区二区视频在线观看| 亚洲精品久久久久久国产精华液| 国产精品一区二区视频| 日韩一区二区精品在线观看| 亚洲国产日日夜夜| 91免费视频网| 国产精品乱码妇女bbbb| 久久精品99国产国产精| 欧美精品久久99久久在免费线 | 97久久超碰国产精品| 久久综合九色综合欧美98| 日韩成人一级大片| 欧美三片在线视频观看| 亚洲男人的天堂在线aⅴ视频| 国产**成人网毛片九色| 久久久午夜精品理论片中文字幕| 免费在线观看不卡| 欧美老年两性高潮| 亚洲国产综合91精品麻豆 | 午夜视频在线观看一区二区三区| 99久久精品免费看国产| 中文无字幕一区二区三区 | 欧美国产日本韩| 懂色av一区二区三区免费看| 久久毛片高清国产| 91成人国产精品| 欧美国产日韩a欧美在线观看 | 国产午夜精品一区二区三区嫩草| 国内精品伊人久久久久av影院| 欧美mv和日韩mv的网站| 老司机免费视频一区二区| 欧美一级欧美一级在线播放| 日韩av中文字幕一区二区| 欧美高清www午色夜在线视频| 亚洲第一福利一区| 欧美精品日韩一本| 青青国产91久久久久久| 日韩欧美中文字幕精品| 精品在线你懂的| 精品久久久久久久久久久院品网| 韩国理伦片一区二区三区在线播放| 日韩精品一区二区三区在线观看 | 国产欧美视频在线观看| 成人app软件下载大全免费| 国产精品久久久久影院老司| 97se亚洲国产综合在线| 一卡二卡三卡日韩欧美| 欧美日韩美女一区二区| 日产精品久久久久久久性色| 日韩三级伦理片妻子的秘密按摩| 精品一区二区三区免费毛片爱 | 白白色亚洲国产精品| 亚洲欧美经典视频| 欧美日本一区二区三区四区| 日韩成人午夜精品| 精品国产3级a| 成人美女视频在线看| 伊人色综合久久天天人手人婷| 欧美视频三区在线播放| 麻豆精品一区二区av白丝在线| 久久久国产精品麻豆| 91小视频在线观看| 午夜成人在线视频| 亚洲精品在线观| 97久久精品人人做人人爽| 日精品一区二区| 久久精品一区二区三区不卡牛牛| 91在线国产福利| 视频一区欧美精品| 久久这里只有精品首页| 91小视频免费看| 美女久久久精品| 国产精品美女久久久久久2018| 欧美在线免费观看亚洲| 紧缚捆绑精品一区二区| 自拍偷拍国产亚洲| 日韩视频在线一区二区| 不卡欧美aaaaa| 日韩电影免费一区| 国产精品久99| 91精品国产麻豆国产自产在线| 国产99精品视频| 天堂精品中文字幕在线| 欧美国产97人人爽人人喊| 欧美性视频一区二区三区| 国产乱对白刺激视频不卡| 一区二区三区蜜桃网| 久久精品人人做人人爽人人| 欧美视频三区在线播放| 成人性生交大片免费看中文| 日本亚洲最大的色成网站www| 国产欧美日韩久久| 538prom精品视频线放| 成人av网站免费| 日本va欧美va精品| 亚洲视频在线一区二区| 久久久久久麻豆| 欧美日韩亚洲丝袜制服| 国产91高潮流白浆在线麻豆| 美国一区二区三区在线播放| 亚洲午夜激情网页| 亚洲欧洲精品天堂一级| 国产亚洲自拍一区| 欧美成人官网二区| 在线播放91灌醉迷j高跟美女| 波多野结衣91| 国产精一区二区三区| 美女免费视频一区二区| 亚洲成av人综合在线观看| 亚洲免费av在线| 国产精品久久久久三级| 日本一区二区三级电影在线观看| 欧美一级日韩一级| 欧美日韩不卡在线| 91福利视频久久久久| www.爱久久.com| 国产精品18久久久久久久网站| 蜜臀av一级做a爰片久久| 肉色丝袜一区二区| 亚洲午夜久久久久久久久电影院| 最新国产精品久久精品| 久久久综合视频| 欧美成人一区二区三区片免费| 国产乱理伦片在线观看夜一区 | 99久久综合国产精品| 国产成人综合在线| 精品一区二区三区香蕉蜜桃| 亚洲第一福利一区| 亚洲欧美日韩在线| 中文久久乱码一区二区| 精品欧美乱码久久久久久1区2区 | 日韩伦理av电影| 日韩欧美一级二级| 日韩亚洲欧美高清| 欧美亚洲综合在线| 色天使久久综合网天天| 91蜜桃婷婷狠狠久久综合9色| 国产伦精品一区二区三区在线观看| 婷婷开心激情综合| 亚洲图片有声小说| 日韩精品亚洲一区二区三区免费| 一区二区在线观看视频| 国产丝袜美腿一区二区三区| 精品日韩一区二区三区免费视频| 欧美精品一区二区三区视频| 精品日韩欧美在线| 日韩精品综合一本久道在线视频|