/AliOS-Things-master/components/SDL2/src/timer/unix/ |
A D | SDL_systimer.c | 118 struct timespec now; in SDL_GetTicks() local 129 struct timeval now; in SDL_GetTicks() local 147 struct timespec now; in SDL_GetPerformanceCounter() local 150 ticks = now.tv_sec; in SDL_GetPerformanceCounter() 152 ticks += now.tv_nsec; in SDL_GetPerformanceCounter() 160 struct timeval now; in SDL_GetPerformanceCounter() local 163 ticks = now.tv_sec; in SDL_GetPerformanceCounter() 165 ticks += now.tv_usec; in SDL_GetPerformanceCounter() 207 Uint32 then, now, elapsed; in SDL_Delay() local 226 now = SDL_GetTicks(); in SDL_Delay() [all …]
|
/AliOS-Things-master/components/py_engine/tests/wipy/ |
A D | rtc.py | 15 print(rtc.now()[:6]) 18 print(rtc.now()[:6]) 21 print(rtc.now()[:6]) 24 print(rtc.now()[:6]) 25 seconds = rtc.now()[5] 28 seconds = rtc.now()[5] 34 print(rtc.now()[5]) 36 print(rtc.now()[5]) 38 print(rtc.now()[5]) 40 print(rtc.now()[4]) [all …]
|
/AliOS-Things-master/components/mqtt/MQTTClient-C/ |
A D | MQTTLinux.c | 27 struct timeval now, res; in TimerIsExpired() local 28 gettimeofday(&now, NULL); in TimerIsExpired() 29 timersub(&timer->end_time, &now, &res); in TimerIsExpired() 36 struct timeval now; in TimerCountdownMS() local 37 gettimeofday(&now, NULL); in TimerCountdownMS() 39 timeradd(&now, &interval, &timer->end_time); in TimerCountdownMS() 45 struct timeval now; in TimerCountdown() local 46 gettimeofday(&now, NULL); in TimerCountdown() 54 struct timeval now, res; in TimerLeftMS() local 55 gettimeofday(&now, NULL); in TimerLeftMS() [all …]
|
/AliOS-Things-master/components/linkkit/infra/ |
A D | infra_timer.c | 22 uint32_t now, res; in utils_time_spend() local 28 now = HAL_UptimeMs(); in utils_time_spend() 29 res = now - start->time; in utils_time_spend() 35 uint32_t now, res; in iotx_time_left() local 45 now = HAL_UptimeMs(); in iotx_time_left() 46 res = end->time - now; in iotx_time_left()
|
/AliOS-Things-master/components/ble_host/bt_host/port/aos/ |
A D | event_scheduler.c | 16 uint32_t now; in scheduler_loop() local 26 now = k_uptime_get_32(); in scheduler_loop() 29 if (now < (work->start_ms + work->timeout)) { in scheduler_loop() 30 delayed_ms = work->start_ms + work->timeout - now; in scheduler_loop() 50 now = k_uptime_get_32(); in scheduler_loop() 52 if (now >= (work->start_ms + work->timeout)) { in scheduler_loop()
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/onewire/ |
A D | module_onewire.c | 40 unsigned long now,t; in oneWireUdelay() local 46 now = t; in oneWireUdelay() 47 while ((now - t) < x) { in oneWireUdelay() 48 now = FAST_TICKS_TO_US(hal_fast_sys_timer_get()); in oneWireUdelay() 218 unsigned long now,t; in oneWireSetSpeed() local 261 now = FAST_TICKS_TO_US(hal_fast_sys_timer_get()); in oneWireSetSpeed() 264 …rn(MOD_STR, "[%d]hal_cmu_get_crystal_freq[%d] delta = %d", A, hal_cmu_get_crystal_freq(), (t-now)); in oneWireSetSpeed() 266 now = FAST_TICKS_TO_US(hal_fast_sys_timer_get()); in oneWireSetSpeed() 269 …rn(MOD_STR, "[%d]hal_cmu_get_crystal_freq[%d] delta = %d", B, hal_cmu_get_crystal_freq(), (t-now)); in oneWireSetSpeed() 271 now = FAST_TICKS_TO_US(hal_fast_sys_timer_get()); in oneWireSetSpeed() [all …]
|
/AliOS-Things-master/components/SDL2/src/timer/psp/ |
A D | SDL_systimer.c | 60 struct timeval now; in SDL_GetTicks() local 63 gettimeofday(&now, NULL); in SDL_GetTicks() 64 ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_usec-start.tv_usec)/1000; in SDL_GetTicks()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/onewire/ |
A D | module_onewire.c | 46 unsigned long now,t; in oneWireUdelay() local 52 now = t; in oneWireUdelay() 53 while ((now - t) < x) { in oneWireUdelay() 54 now = FAST_TICKS_TO_US(hal_fast_sys_timer_get()); in oneWireUdelay() 224 unsigned long now,t; in oneWireSetSpeed() local 267 now = FAST_TICKS_TO_US(hal_fast_sys_timer_get()); in oneWireSetSpeed() 270 …rn(MOD_STR, "[%d]hal_cmu_get_crystal_freq[%d] delta = %d", A, hal_cmu_get_crystal_freq(), (t-now)); in oneWireSetSpeed() 272 now = FAST_TICKS_TO_US(hal_fast_sys_timer_get()); in oneWireSetSpeed() 275 …rn(MOD_STR, "[%d]hal_cmu_get_crystal_freq[%d] delta = %d", B, hal_cmu_get_crystal_freq(), (t-now)); in oneWireSetSpeed() 277 now = FAST_TICKS_TO_US(hal_fast_sys_timer_get()); in oneWireSetSpeed() [all …]
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testtimer.c | 46 Uint64 start, now; in main() local 107 now = SDL_GetPerformanceCounter(); in main() 108 …SDL_Log("1 million iterations of ticktock took %f ms\n", (double)((now - start)*1000) / SDL_GetPer… in main() 114 now = SDL_GetPerformanceCounter(); in main() 116 …cks, %f ms according to performance counter\n", (now32-start32), (double)((now - start)*1000) / SD… in main()
|
A D | testoffscreen.c | 103 Uint32 then, now, frames; in main() local 154 now = SDL_GetTicks(); in main() 155 if (now > then) { in main() 156 double fps = ((double) frames * 1000) / (now - then); in main()
|
A D | testscale.c | 157 Uint32 then, now; in main() local 204 now = SDL_GetTicks(); in main() 205 if (now > then) { in main() 206 double fps = ((double) frames * 1000) / (now - then); in main()
|
A D | testrendercopyex.c | 167 Uint32 then, now; in main() local 213 now = SDL_GetTicks(); in main() 214 if (now > then) { in main() 215 double fps = ((double) frames * 1000) / (now - then); in main()
|
/AliOS-Things-master/components/cplusplus/example/cpp_standard/ |
A D | timed_mutex.cpp | 16 auto start = chrono::steady_clock::now(); in task0_entry() 18 auto end = std::chrono::steady_clock::now(); in task0_entry() 30 auto start = chrono::steady_clock::now(); in task1_entry() 32 auto end = chrono::steady_clock::now(); in task1_entry()
|
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ |
A D | timeouts.c | 208 u32_t now, diff; in sys_timeout_debug() local 216 now = sys_now(); in sys_timeout_debug() 219 timeouts_last_time = now; in sys_timeout_debug() 221 diff = now - timeouts_last_time; in sys_timeout_debug() 321 u32_t now; in sys_check_timeouts() local 323 now = sys_now(); in sys_check_timeouts() 325 diff = now - timeouts_last_time; in sys_check_timeouts()
|
/AliOS-Things-master/components/py_engine/tests/extmod/ |
A D | utime_res.py | 41 now = time_func() # may raise AttributeError 45 results_map[func_name].add(now) 47 results_map[func_name] = {now}
|
/AliOS-Things-master/components/SDL2/src/thread/pthread/ |
A D | SDL_syssem.c | 110 struct timeval now; in SDL_SemWaitTimeout() local 141 gettimeofday(&now, NULL); in SDL_SemWaitTimeout() 144 ts_timeout.tv_sec = now.tv_sec + (timeout / 1000); in SDL_SemWaitTimeout() 145 ts_timeout.tv_nsec = (now.tv_usec + (timeout % 1000) * 1000) * 1000; in SDL_SemWaitTimeout()
|
/AliOS-Things-master/components/mbedtls/library/ |
A D | timing.c | 262 LARGE_INTEGER now, hfreq; in mbedtls_timing_get_timer() local 263 QueryPerformanceCounter( &now ); in mbedtls_timing_get_timer() 265 delta = (unsigned long)( ( now.QuadPart - t->start.QuadPart ) * 1000ul in mbedtls_timing_get_timer() 312 struct timeval now; in mbedtls_timing_get_timer() local 313 gettimeofday( &now, NULL ); in mbedtls_timing_get_timer() 314 delta = ( now.tv_sec - t->start.tv_sec ) * 1000ul in mbedtls_timing_get_timer() 315 + ( now.tv_usec - t->start.tv_usec ) / 1000; in mbedtls_timing_get_timer()
|
A D | x509.c | 907 now->year = lt->tm_year + 1900; in x509_get_current_time() 908 now->mon = lt->tm_mon + 1; in x509_get_current_time() 909 now->day = lt->tm_mday; in x509_get_current_time() 910 now->hour = lt->tm_hour; in x509_get_current_time() 911 now->min = lt->tm_min; in x509_get_current_time() 912 now->sec = lt->tm_sec; in x509_get_current_time() 961 mbedtls_x509_time now; in mbedtls_x509_time_is_past() local 963 if( x509_get_current_time( &now ) != 0 ) in mbedtls_x509_time_is_past() 966 return( x509_check_time( &now, to ) ); in mbedtls_x509_time_is_past() 971 mbedtls_x509_time now; in mbedtls_x509_time_is_future() local [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/at/ |
A D | module_at.c | 33 uint64_t now = 0; in native_atRead() local 44 now = aos_now_ms(); in native_atRead() 51 if (aos_now_ms() - now > (unsigned long)timeout) { in native_atRead() 83 uint64_t now = 0; in native_atReadLine() local 95 now = aos_now_ms(); in native_atReadLine() 101 if (aos_now_ms() - now > (unsigned long)timeout) { in native_atReadLine()
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/core/src/ |
A D | InstanceProfileCredentialsProvider.cc | 45 auto now = std::chrono::system_clock::now(); in checkExpiry() local 47 std::chrono::duration_cast<std::chrono::seconds>(now - expiry_).count(); in checkExpiry()
|
A D | StsAssumeRoleCredentialsProvider.cc | 41 auto now = std::chrono::system_clock::now(); in checkExpiry() local 43 std::chrono::duration_cast<std::chrono::seconds>(now - expiry_).count(); in checkExpiry()
|
/AliOS-Things-master/components/SDL2/src/timer/windows/ |
A D | SDL_systimer.c | 122 DWORD now = 0; in SDL_GetTicks() local 139 now = timeGetTime(); in SDL_GetTicks() 143 return (now - start); in SDL_GetTicks()
|
/AliOS-Things-master/solutions/auto_demo/ |
A D | auto_app.c | 50 unsigned long now,t; in _udelay() local 53 now = t; in _udelay() 54 while ((now - t) < x) { in _udelay() 55 now = FAST_TICKS_TO_US(hal_fast_sys_timer_get()); in _udelay()
|
/AliOS-Things-master/solutions/flower_demo/ |
A D | flower_app.c | 40 unsigned long now,t; in _udelay() local 43 now = t; in _udelay() 44 while ((now - t) < x) { in _udelay() 45 now = FAST_TICKS_TO_US(hal_fast_sys_timer_get()); in _udelay()
|
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/ |
A D | change.log | 36 jpegtran now supports N bits sample data precision with all N from 8 to 12 60 The recommended command for lossless coding of RGB images is now 170 djpeg now supports scalings N/8 with all N from 1 to 16. 171 cjpeg now supports scalings 8/N with all N from 1 to 16. 172 Scaled DCTs with size larger than 8 are now also used for resolving the 187 upsampling. Fancy upsampling now uses direct DCT scaling with sizes 225 jpegtran now copies comments by default; it has a -copy switch to enable 263 The configure script now supports building libjpeg as a shared library 276 djpeg's -map switch is now able to read raw-format PPM files reliably. 293 that is, GLOBAL, LOCAL, METHODDEF, EXTERN are now macros taking the [all …]
|