/AliOS-Things-master/components/amp/jslib/src/ |
A D | rtc.js | 7 export function setTime(time) { argument 8 if (!time) { 12 if (!(time instanceof Date)) { 17 year: time.getYear(), 18 month: time.getMonth(), 19 day: time.getDate(), 20 hour: time.getHours(), 22 second: time.getSeconds() 28 var time = RTC.getTime(); 29 console.log(time); [all …]
|
/AliOS-Things-master/components/amp/libjs/lib/ |
A D | rtc.js | 7 function setTime(time) { argument 8 if (!time) { 12 if (!(time instanceof Date)) { 17 year: time.getYear(), 18 month: time.getMonth(), 19 day: time.getDate(), 20 hour: time.getHours(), 21 minute: time.getMinutes(), 22 second: time.getSeconds() 29 console.log(time); [all …]
|
/AliOS-Things-master/components/py_engine/tests/wipy/ |
A D | time.py | 1 import time 80 t1 = time.time() 81 time.sleep(2) 82 t2 = time.time() 85 t1 = time.ticks_ms() 86 time.sleep_ms(50) 87 t2 = time.ticks_ms() 90 t1 = time.ticks_us() 91 time.sleep_us(1000) 92 t2 = time.ticks_us() [all …]
|
A D | rtc.py | 7 import time 26 time.sleep_ms(1000) 29 time.sleep_ms(2000) 68 rtc.alarm(time=2000) 69 time.sleep_ms(1000) 72 time.sleep_ms(1000) 74 time.sleep_ms(100) 77 rtc.alarm(time=1000, repeat=True) 78 time.sleep_ms(1500) 83 rtc.alarm(time=(2015, 8, 29, 9, 0, 45)) [all …]
|
A D | pin_irq.py | 8 import time 37 time.sleep_ms(5) 47 time.sleep_ms(5) 58 time.sleep_us(50) 62 time.sleep_us(50) 76 time.sleep_ms(5) 82 t0 = time.ticks_ms() 85 print(time.ticks_ms() - t0 < 10) 90 t0 = time.ticks_ms() 93 print(time.ticks_ms() - t0 < 10)
|
A D | wdt.py | 6 import time 32 time.sleep_ms(500) 35 time.sleep_ms(900) 38 time.sleep_ms(950)
|
/AliOS-Things-master/components/amp_adapter/platform/linux/peripheral/ |
A D | aos_hal_rtc.c | 24 time->year = time_save.year; in aos_hal_rtc_get_time() 25 time->month = time_save.month; in aos_hal_rtc_get_time() 26 time->date = time_save.date; in aos_hal_rtc_get_time() 27 time->hr = time_save.hr; in aos_hal_rtc_get_time() 28 time->min = time_save.min; in aos_hal_rtc_get_time() 29 time->sec = time_save.sec; in aos_hal_rtc_get_time() 35 time_save.year = time->year; in aos_hal_rtc_set_time() 37 time_save.date = time->date; in aos_hal_rtc_set_time() 38 time_save.hr = time->hr; in aos_hal_rtc_set_time() 39 time_save.min = time->min; in aos_hal_rtc_set_time() [all …]
|
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/statics/ |
A D | awss_statis.c | 262 DROUTE_END = time; in awss_update_statis() 304 SM_START = time; in awss_update_statis() 308 SM_END = time; in awss_update_statis() 318 SM_TMIN = time; in awss_update_statis() 320 SM_TMAX = time; in awss_update_statis() 338 PAP_START = time; in awss_update_statis() 342 PAP_END = time; in awss_update_statis() 359 PAP_SSTART = time; in awss_update_statis() 362 PAP_SSTOP = time; in awss_update_statis() 377 DAP_START = time; in awss_update_statis() [all …]
|
/AliOS-Things-master/components/ble_host/bt_host/port/core/ |
A D | timer.c | 60 timer_new->time = msecs + diff; in mtimer_start() 62 timer_new->time = msecs; in mtimer_start() 70 if (g_timer_list->time > msecs) { in mtimer_start() 71 g_timer_list->time -= msecs; in mtimer_start() 76 timer_new->time -= t->time; in mtimer_start() 78 if (t->next == NULL || t->next->time > timer_new->time) { in mtimer_start() 80 t->next->time -= timer_new->time; in mtimer_start() 113 t->next->time += t->time; in mtimer_stop() 136 if (g_timer_list->time > 0) { in mtimer_mbox_fetch() 170 g_timer_list->time -= time_needed; in mtimer_mbox_fetch() [all …]
|
/AliOS-Things-master/components/drivers/external_device/rx8130ce/src/ |
A D | rx8130ce.c | 80 const RX8130CE_TIME_T *time = (RX8130CE_TIME_T *)buf; in rx8130ce_set_time() local 96 data[3] = rx8130ce_checkminmax(time->week, 1, 7) & 0x7F; in rx8130ce_set_time() 97 data[4] = rx8130ce_bin2bcd(rx8130ce_checkminmax(time->day, 1, 31)) & 0x3F; in rx8130ce_set_time() 126 RX8130CE_TIME_T *time = (RX8130CE_TIME_T *)buf; in rx8130ce_get_time() local 148 time->seconds = rx8130ce_bcd2bin(data[0]); in rx8130ce_get_time() 149 time->minutes = rx8130ce_bcd2bin(data[1]); in rx8130ce_get_time() 150 time->hours = rx8130ce_bcd2bin(data[2]); in rx8130ce_get_time() 151 time->week = (data[3]) & 0x7F; in rx8130ce_get_time() 152 time->day = rx8130ce_bcd2bin(data[4]); in rx8130ce_get_time() 153 time->month = rx8130ce_bcd2bin(data[5]); in rx8130ce_get_time() [all …]
|
/AliOS-Things-master/components/sensor/drv/ |
A D | drv_rtc_maxim_ds1307.c | 151 const rtc_data_t *time = (rtc_data_t *)buf; in drv_rtc_maxim_ds1307_write() local 169 data[DS1307_DAY] = TM_DS1307_Bin2Bcd(TM_DS1307_CheckMinMax(time->day, 1, 7)); in drv_rtc_maxim_ds1307_write() 191 rtc_data_t *time = (rtc_data_t *)buf; in drv_rtc_maxim_ds1307_read() local 213 time->seconds = TM_DS1307_Bcd2Bin(data[DS1307_SECONDS]); in drv_rtc_maxim_ds1307_read() 214 time->minutes = TM_DS1307_Bcd2Bin(data[DS1307_MINUTES]); in drv_rtc_maxim_ds1307_read() 215 time->hours = TM_DS1307_Bcd2Bin(data[DS1307_HOURS]); in drv_rtc_maxim_ds1307_read() 216 time->day = TM_DS1307_Bcd2Bin(data[DS1307_DAY]); in drv_rtc_maxim_ds1307_read() 217 time->date = TM_DS1307_Bcd2Bin(data[DS1307_DATE]); in drv_rtc_maxim_ds1307_read() 218 time->month = TM_DS1307_Bcd2Bin(data[DS1307_MONTH]); in drv_rtc_maxim_ds1307_read() 219 time->year = TM_DS1307_Bcd2Bin(data[DS1307_YEAR]); in drv_rtc_maxim_ds1307_read() [all …]
|
/AliOS-Things-master/components/py_engine/engine/tools/ |
A D | transymodem.py | 59 tic = time.time() 63 currentTic = time.time() 76 currentTic = time.time() 79 while (time.time() - tic) < (timeout + 10): 90 tic = time.time() 92 while (time.time() - tic) < timeout: 108 time.sleep(0.1) 156 time.sleep(0.1) 211 time.sleep(1) 255 time.sleep(0.1) [all …]
|
/AliOS-Things-master/components/py_engine/tests/wipy/skipped/ |
A D | rtc_irq.py | 8 import time 31 rtc.alarm(time=500, repeat=True) 35 time.sleep_ms(1000) 39 rtc.alarm(time=200, repeat=True) 40 time.sleep_ms(1000) 45 rtc.alarm(time=100, repeat=True) 46 time.sleep_ms(1000) 53 rtc.alarm(time=50, repeat=True) 62 rtc.alarm(time=100, repeat=False) 63 time.sleep_ms(250) [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ |
A D | timeouts.c | 227 timeout->time = msecs + diff; in sys_timeout_debug() 239 if (next_timeout->time > msecs) { in sys_timeout_debug() 240 next_timeout->time -= msecs; in sys_timeout_debug() 245 timeout->time -= t->time; in sys_timeout_debug() 246 if (t->next == NULL || t->next->time > timeout->time) { in sys_timeout_debug() 248 t->next->time -= timeout->time; in sys_timeout_debug() 254 timeout->time = msecs + next_timeout->time; in sys_timeout_debug() 292 t->next->time += t->time; in sys_untimeout() 334 diff -= tmptimeout->time; in sys_check_timeouts() 388 if (diff > next_timeout->time) { in sys_timeouts_sleeptime() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/ |
A D | rtc.c | 95 int days = time->date; in get_yday() 239 time->sec = tm_temp.tm_sec; in hal_rtc_get_time() 240 time->min = tm_temp.tm_min; in hal_rtc_get_time() 241 time->hr = tm_temp.tm_hour; in hal_rtc_get_time() 243 time->date = tm_temp.tm_mday; in hal_rtc_get_time() 244 time->month = tm_temp.tm_mon; in hal_rtc_get_time() 245 time->year = tm_temp.tm_year; in hal_rtc_get_time() 263 timeinfo.tm_sec = time->sec; in hal_rtc_set_time() 264 timeinfo.tm_min = time->min ; in hal_rtc_set_time() 265 timeinfo.tm_hour= time->hr; in hal_rtc_set_time() [all …]
|
/AliOS-Things-master/components/littlevgl/src/lv_misc/ |
A D | lv_anim.c | 75 a->time = 500; in lv_anim_init() 165 if(time > UINT16_MAX) time = UINT16_MAX; in lv_anim_speed_to_time() 167 if(time == 0) { in lv_anim_speed_to_time() 168 time++; in lv_anim_speed_to_time() 171 return time; in lv_anim_speed_to_time() 208 if(a->time == a->act_time) in lv_anim_path_ease_in() 233 if(a->time == a->act_time) in lv_anim_path_ease_out() 258 if(a->time == a->act_time) in lv_anim_path_ease_in_out() 283 if(a->time == a->act_time) in lv_anim_path_overshoot() 307 if(a->time == a->act_time) in lv_anim_path_bounce() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/release/aos_burn_tool/ |
A D | flash_program_ll.py | 2 import os, sys, re, time 15 start = time.time() 16 while (time.time() - start) < timeout: 42 start = time.time() 43 while (time.time() - start) < timeout: 140 time.sleep(2) 142 time.sleep(2) 162 time.sleep(0.5) 164 time.sleep(0.5) 166 time.sleep(0.5) [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/release/aos_burn_tool/ |
A D | flash_program_ll.py | 2 import os, sys, re, time 15 start = time.time() 16 while (time.time() - start) < timeout: 42 start = time.time() 43 while (time.time() - start) < timeout: 140 time.sleep(2) 142 time.sleep(2) 162 time.sleep(0.5) 164 time.sleep(0.5) 166 time.sleep(0.5) [all …]
|
/AliOS-Things-master/components/SDL2/src/video/yuv2rgb/ |
A D | README.md | 44 Processing time (std) : 2.630193 sec 45 Processing time (sse2_unaligned) : 0.704394 sec 47 Processing time (ipp_unaligned) : 0.636274 sec 48 Processing time (sse2_aligned) : 0.606648 sec 49 Processing time (ffmpeg_aligned) : 1.227100 sec 50 Processing time (ipp_aligned) : 0.636951 sec 55 Processing time (std) : 2.588675 sec 56 Processing time (sse2_unaligned) : 0.676625 sec 58 Processing time (ipp_unaligned) : 0.593890 sec 59 Processing time (sse2_aligned) : 0.640630 sec [all …]
|
/AliOS-Things-master/components/py_engine/tests/internal_bench/ |
A D | bench.py | 1 import time 8 t = time.time() 10 t = time.time() - t
|
/AliOS-Things-master/components/linkkit/wifi_provision/dev_bind/ |
A D | awss_bind_statis.c | 117 uint32_t time = HAL_UptimeMs(); in awss_bind_update_statis() local 136 DB_START = time; in awss_bind_update_statis() 139 DB_END = time; in awss_bind_update_statis() 141 time = (uint32_t)(DB_END - DB_START); in awss_bind_update_statis() 143 DB_TMEAN = (DB_TMEAN + time) / DB_SUC; in awss_bind_update_statis() 146 DB_TMEAN = time; in awss_bind_update_statis() 148 if (DB_TMIN == 0 || DB_TMIN > time) { in awss_bind_update_statis() 149 DB_TMIN = time; in awss_bind_update_statis() 151 if (DB_TMAX == 0 || DB_TMAX < time) { in awss_bind_update_statis() 152 DB_TMAX = time; in awss_bind_update_statis()
|
/AliOS-Things-master/components/linkkit/infra/ |
A D | infra_timer.c | 17 timer->time = HAL_UptimeMs(); in iotx_time_start() 29 res = now - start->time; in utils_time_spend() 46 res = end->time - now; in iotx_time_left() 65 if ((cur_time - timer->time) < (UINT32_MAX / 2)) { in utils_time_is_expired() 78 timer->time = 0; in iotx_time_init() 87 timer->time = HAL_UptimeMs() + millisecond; in utils_time_countdown_ms()
|
/AliOS-Things-master/components/py_engine/tests/unix/ |
A D | time.py | 2 import utime as time namespace 4 import time 8 tzseconds = -time.mktime((1970, 1, 1, 14, 0, 0, 0, 0, 0)) 27 secs = time.mktime((year, month, day, 14, 0, 0, 0, 0, 0)) + tzseconds 34 tuple = time.localtime(seconds) 35 secs = time.mktime(tuple)
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/common/ |
A D | mesh_model.c | 33 bt_u32_t time; member 105 time /= 100; in _get_transition_byte() 107 if (time > TRANS_TIMES[3] * 62) { in _get_transition_byte() 109 } else if (time > TRANS_TIMES[2] * 62) { in _get_transition_byte() 110 return (time / TRANS_TIMES[3]) | 0xC0; in _get_transition_byte() 111 } else if (time > TRANS_TIMES[1] * 62) { in _get_transition_byte() 112 return (time / TRANS_TIMES[2]) | 0x80; in _get_transition_byte() 113 } else if (time > TRANS_TIMES[0] * 62) { in _get_transition_byte() 114 return (time / TRANS_TIMES[1]) | 0x40; in _get_transition_byte() 116 return (time / TRANS_TIMES[0]); in _get_transition_byte() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/ |
A D | hal_rtc.h | 22 typedef void (*HAL_RTC_IRQ_HANDLER_T)(struct rtc_time *time); 24 int hal_rtc_get(struct rtc_time *time); 26 int hal_rtc_set(struct rtc_time *time); 28 int hal_rtc_set_alarm(struct rtc_time *time);
|