码迷,mamicode.com
首页 >  
搜索关键字:interval    ( 2017个结果
python 定时器
__author__=‘root‘ importtime fromCTimeHandleimportCTimeHandle classRepeatableTimer(object): def__init__(self,interval,function,args=[],kwargs={}): self.interval=interval self.function=function self.args=args self.kwargs=kwargs self.dayrun=False self.afterh..
分类:编程语言   时间:2015-02-08 06:49:26    阅读次数:208
hdu 3473 Minimum Sum 再来一波划分树,对划分树累觉不爱。
Problem Description You are given N positive integers, denoted as x0, x1 ... xN-1. Then give you some intervals [l, r]. For each interval, you need to find a number x to make as small as possible! Input The first line is an integer T (T <= 10), indicat...
分类:其他好文   时间:2015-02-07 14:39:36    阅读次数:205
共享boost::deadline_timer封装模板,可以接受任何函数对象
// // fox_timer.hpp // ~~~~~~~~~~~~~~~~ // // Copyright (c) 2014-2015 yoen.xu (181471112 at  qq dot com) // //说明 //eg:  fox_timer::run(io_, func, interval); //     T 为func的返回类型,当T为int的时候(范围值-1...
分类:其他好文   时间:2015-02-06 09:30:47    阅读次数:232
setInterval和setTimeout的区别
setInterval会每隔指定的毫秒数后反复执行指定代码。setTimeout只会在指定的毫秒数后执行一次指定代码。setInterval的用法:// 创建(创建后即开始计时)var interval = window.setInterval(function(){ // 要执行的代码},1...
分类:其他好文   时间:2015-02-05 17:49:02    阅读次数:141
[LeetCode]Insert Interval
Given a non-overlapping interval list which is sorted by start point. Insert a new interval into it, make sure the list is still in order and non-overlapping (merge intervals if necessary). Exam...
分类:其他好文   时间:2015-02-04 18:45:28    阅读次数:152
SQL Server 按时间间隔提取数据进行数据采样
Select Ana1,RdDate,RdTime,cast(convert(varchar,RdDate,112)+' '+convert(varchar,RdTime,108) as datetime) as time,t.interval FROM (SELECT Ana1,RdDate,RdTime, datediff (mi,cast(convert(varchar,RdDate,1...
分类:数据库   时间:2015-02-02 10:50:38    阅读次数:365
Python学习之(二) Python多线程学习
多线程的一个实例#coding=utf-8#!/usr/bin/pythonimport time import thread def timer(no, interval): cnt = 0 while cnt<10: time.sleep(interval...
分类:编程语言   时间:2015-02-01 20:23:16    阅读次数:185
[Leetcode] Insert Interval
Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially...
分类:其他好文   时间:2015-02-01 07:05:19    阅读次数:191
LeetCode Insert Interval
Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially...
分类:其他好文   时间:2015-01-31 00:03:18    阅读次数:165
BLE固件开发--更新连接参数
低功耗蓝牙里重要的三个连接参数:Connection Interval,Slave Latency,Supervision Timeout.这三个参数决定了BLE的功耗。     更新连接参数的相关api:  /******************************************************************** * @fn GAPRole...
分类:其他好文   时间:2015-01-29 19:36:18    阅读次数:668
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!