Home
last modified time | relevance | path

Searched refs:seconds (Results 1 – 25 of 72) sorted by relevance

123

/AliOS-Things-master/components/py_engine/tests/pyb/
A Dmodtime.py11 seconds = 0
23 if secs != seconds:
26 % (year, month, day, secs, seconds)
28 tuple = time.localtime(seconds)
30 if secs != seconds:
33 % (year, month, day, secs, seconds)
36 seconds += 86400
53 def spot_test(seconds, expected_time): argument
54 actual_time = time.localtime(seconds)
58 "time.localtime(", seconds, ") returned", actual_time, "expecting", expected_time
[all …]
/AliOS-Things-master/components/py_engine/tests/wipy/
A Dtime.py11 seconds = 0
23 if secs != seconds:
26 % (year, month, day, secs, seconds)
28 tuple = time.localtime(seconds)
30 if secs != seconds:
33 % (year, month, day, secs, seconds)
36 seconds += 86400
53 def spot_test(seconds, expected_time): argument
54 actual_time = time.localtime(seconds)
58 "time.localtime(", seconds, ") returned", actual_time, "expecting", expected_time
[all …]
A Drtc.py25 seconds = rtc.now()[5] variable
27 print(rtc.now()[5] - seconds == 1)
28 seconds = rtc.now()[5] variable
30 print(rtc.now()[5] - seconds == 2)
/AliOS-Things-master/components/py_engine/engine/shared/timeutils/
A Dtimeutils.c72 mp_int_t seconds = t - LEAPOCH; in timeutils_seconds_since_2000_to_struct_time() local
74 mp_int_t days = seconds / 86400; in timeutils_seconds_since_2000_to_struct_time()
75 seconds %= 86400; in timeutils_seconds_since_2000_to_struct_time()
76 if (seconds < 0) { in timeutils_seconds_since_2000_to_struct_time()
77 seconds += 86400; in timeutils_seconds_since_2000_to_struct_time()
80 tm->tm_hour = seconds / 3600; in timeutils_seconds_since_2000_to_struct_time()
81 tm->tm_min = seconds / 60 % 60; in timeutils_seconds_since_2000_to_struct_time()
82 tm->tm_sec = seconds % 60; in timeutils_seconds_since_2000_to_struct_time()
174 minutes += seconds / 60; in timeutils_mktime_2000()
175 if ((seconds = seconds % 60) < 0) { in timeutils_mktime_2000()
[all …]
A Dtimeutils.h63 mp_int_t hours, mp_int_t minutes, mp_int_t seconds);
73 …p_uint_t year, mp_int_t month, mp_int_t mday, mp_int_t hours, mp_int_t minutes, mp_int_t seconds) { in timeutils_mktime() argument
74 …return timeutils_mktime_2000(year, month, mday, hours, minutes, seconds) + TIMEUTILS_SECONDS_1970_… in timeutils_mktime()
/AliOS-Things-master/components/SDL2/src/power/
A DSDL_power.c30 (*SDL_GetPowerInfo_Impl) (SDL_PowerState * state, int *seconds,
37 SDL_GetPowerInfo_Hardwired(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Hardwired() argument
39 *seconds = -1; in SDL_GetPowerInfo_Hardwired()
85 SDL_GetPowerInfo(int *seconds, int *percent) in SDL_GetPowerInfo() argument
95 if (seconds == NULL) { in SDL_GetPowerInfo()
96 seconds = &_seconds; in SDL_GetPowerInfo()
104 if (implementations[i](&retval, seconds, percent)) { in SDL_GetPowerInfo()
111 *seconds = -1; in SDL_GetPowerInfo()
/AliOS-Things-master/components/py_engine/tests/unix/
A Dtime.py16 seconds = 0
28 if secs != seconds:
31 % (year, month, day, secs, seconds)
34 tuple = time.localtime(seconds)
36 if secs != seconds:
39 % (year, month, day, secs, seconds)
42 seconds += 86400
/AliOS-Things-master/components/SDL2/src/power/psp/
A DSDL_syspower.c32 SDL_GetPowerInfo_PSP(SDL_PowerState * state, int *seconds, in SDL_GetPowerInfo_PSP() argument
40 *seconds = -1; in SDL_GetPowerInfo_PSP()
45 *seconds = -1; in SDL_GetPowerInfo_PSP()
50 *seconds = scePowerGetBatteryLifeTime()*60; in SDL_GetPowerInfo_PSP()
54 *seconds = scePowerGetBatteryLifeTime()*60; in SDL_GetPowerInfo_PSP()
58 *seconds = scePowerGetBatteryLifeTime()*60; in SDL_GetPowerInfo_PSP()
/AliOS-Things-master/components/SDL2/test/
A Dtestpower.c20 int seconds, percent; in report_power() local
21 const SDL_PowerState state = SDL_GetPowerInfo(&seconds, &percent); in report_power()
54 if (seconds == -1) { in report_power()
57 SDL_Log("Time left: %d minutes, %d seconds\n", (int) (seconds / 60), in report_power()
58 (int) (seconds % 60)); in report_power()
/AliOS-Things-master/components/SDL2/src/power/linux/
A DSDL_syspower.c202 } else if (secs > *seconds) { in check_proc_acpi_battery()
207 *seconds = secs; in check_proc_acpi_battery()
247 *seconds = -1; in SDL_GetPowerInfo_Linux_proc_acpi()
415 *seconds = -1; in SDL_GetPowerInfo_Linux_proc_apm()
424 *seconds = secs; in SDL_GetPowerInfo_Linux_proc_apm()
444 *seconds = -1; in SDL_GetPowerInfo_Linux_sys_class_power_supply()
519 } else if (secs > *seconds) { in SDL_GetPowerInfo_Linux_sys_class_power_supply()
524 *seconds = secs; in SDL_GetPowerInfo_Linux_sys_class_power_supply()
601 } else if (secs > *seconds) { in check_upower_device()
606 *seconds = secs; in check_upower_device()
[all …]
/AliOS-Things-master/components/SDL2/src/power/android/
A DSDL_syspower.c32 SDL_GetPowerInfo_Android(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Android() argument
38 if (Android_JNI_GetPowerInfo(&plugged, &charged, &battery, seconds, percent) != -1) { in SDL_GetPowerInfo_Android()
46 *seconds = -1; in SDL_GetPowerInfo_Android()
54 *seconds = -1; in SDL_GetPowerInfo_Android()
/AliOS-Things-master/components/SDL2/src/power/macosx/
A DSDL_syspower.c40 SDL_bool * charging, int *seconds, int *percent) in checkps() argument
121 if ((secs < 0) && (*seconds < 0)) { in checkps()
128 } else if (secs > *seconds) { in checkps()
133 *seconds = secs; in checkps()
144 SDL_GetPowerInfo_MacOSX(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_MacOSX() argument
148 *seconds = -1; in SDL_GetPowerInfo_MacOSX()
167 seconds, percent); in SDL_GetPowerInfo_MacOSX()
/AliOS-Things-master/components/SDL2/src/power/emscripten/
A DSDL_syspower.c31 SDL_GetPowerInfo_Emscripten(SDL_PowerState *state, int *seconds, int *percent) in SDL_GetPowerInfo_Emscripten() argument
43 *seconds = -1; in SDL_GetPowerInfo_Emscripten()
53 *seconds = batteryState.dischargingTime; in SDL_GetPowerInfo_Emscripten()
/AliOS-Things-master/components/SDL2/src/power/windows/
A DSDL_syspower.c31 SDL_GetPowerInfo_Windows(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Windows() argument
57 *seconds = -1; in SDL_GetPowerInfo_Windows()
66 *seconds = secs; in SDL_GetPowerInfo_Windows()
/AliOS-Things-master/components/amp/jslib/src/
A Daudioplayer.js30 static seekto(seconds) { argument
31 if (seconds < 0) {
34 return AUDIOPLAYER.seekto(seconds);
/AliOS-Things-master/components/amp/libjs/lib/
A Daudioplayer.js30 seekto(seconds) {
31 if (seconds < 0) {
34 return __native.audioplayer.seekto(seconds);
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmodutime.c45 mp_int_t seconds; in time_localtime() local
49 seconds = tv.tv_sec; in time_localtime()
51 seconds = mp_obj_get_int(args[0]); in time_localtime()
53 timeutils_seconds_since_epoch_to_struct_time(seconds, &tm); in time_localtime()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmodutime.c44 mp_int_t seconds; in time_localtime() local
48 seconds = tv.tv_sec; in time_localtime()
50 seconds = mp_obj_get_int(args[0]); in time_localtime()
52 timeutils_seconds_since_epoch_to_struct_time(seconds, &tm); in time_localtime()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmodutime.c44 mp_int_t seconds; in time_localtime() local
48 seconds = tv.tv_sec; in time_localtime()
50 seconds = mp_obj_get_int(args[0]); in time_localtime()
52 timeutils_seconds_since_epoch_to_struct_time(seconds, &tm); in time_localtime()
/AliOS-Things-master/components/SDL2/src/power/haiku/
A DSDL_syspower.c46 SDL_GetPowerInfo_Haiku(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Haiku() argument
109 *seconds = -1; in SDL_GetPowerInfo_Haiku()
118 *seconds = secs; in SDL_GetPowerInfo_Haiku()
/AliOS-Things-master/components/mbedtls/library/
A Dtiming.c283 void mbedtls_set_alarm( int seconds ) in mbedtls_set_alarm() argument
285 if( seconds == 0 ) in mbedtls_set_alarm()
294 alarmMs = seconds * 1000; in mbedtls_set_alarm()
327 void mbedtls_set_alarm( int seconds ) in mbedtls_set_alarm() argument
336 alarm( seconds ); in mbedtls_set_alarm()
337 if( seconds == 0 ) in mbedtls_set_alarm()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/hal/
A Dpwmout_api.h85 void pwmout_period(pwmout_t* obj, float seconds);
109 void pwmout_pulsewidth(pwmout_t* obj, float seconds);
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/ruy/
A Dtune_test.cc33 std::this_thread::sleep_for(std::chrono::seconds(1)); in TEST()
43 std::this_thread::sleep_for(std::chrono::seconds(1)); in TEST()
/AliOS-Things-master/components/SDL2/src/power/uikit/
A DSDL_syspower.m59 SDL_GetPowerInfo_UIKit(SDL_PowerState * state, int *seconds, int *percent)
63 *seconds = -1;
75 * monitoring if the app hasn't queried it in the last X seconds.
81 *seconds = -1; /* no API to estimate this in UIKit. */
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/
A Dpwmout_api.c258 void pwmout_period(pwmout_t* obj, float seconds) in pwmout_period() argument
260 pwmout_period_us(obj, (int)(seconds * 1000000.0f)); in pwmout_period()
304 void pwmout_pulsewidth(pwmout_t* obj, float seconds) in pwmout_pulsewidth() argument
306 pwmout_pulsewidth_us(obj, (int)(seconds * 1000000.0f)); in pwmout_pulsewidth()

Completed in 19 milliseconds

123