Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 40) sorted by relevance

12

/components/drivers/rtc/
A Ddev_alarm.c104 sec_now = alarm_mkdaysec(now); in alarm_wakeup()
114 sec_now = mktime(now); in alarm_wakeup()
117 sec_now = timegm(now); in alarm_wakeup()
240 struct tm now; in alarm_update() local
251 gmtime_r(&timestamp, &now); in alarm_update()
266 gmtime_r(&timestamp, &now); in alarm_update()
370 struct tm *setup, now; in alarm_setup() local
377 localtime_r(&timestamp, &now); in alarm_setup()
379 gmtime_r(&timestamp, &now); in alarm_setup()
384 setup->tm_sec = now.tm_sec; in alarm_setup()
[all …]
A Ddev_rtc.c148 time_t now, old_timestamp = 0; in set_date() local
177 now = mktime(&tm_new); in set_date()
195 time_t now, old_timestamp = 0; in set_time() local
224 now = mktime(&tm_new); in set_time()
282 time_t now = (time_t)0; in date() local
295 now = tv.tv_sec; in date()
299 rt_kprintf("local time: %.*s", 25U, ctime(&now)); in date()
355 now = mktime(&tm_new); in date()
356 err = set_timestamp(now); in date()
362 get_timestamp(&now); /* get new timestamp */ in date()
[all …]
A Ddev_soft_rtc.c289 time_t now = (time_t)0; in cmd_rtc_sync() local
294 now = tv.tv_sec; in cmd_rtc_sync()
296 rt_kprintf("local time: %.*s", 25, ctime(&now)); in cmd_rtc_sync()
/components/net/lwip/lwip-2.1.2/src/core/
A Dtimeouts.c234 u32_t now; in lwip_cyclic_timer() local
243 now = sys_now(); in lwip_cyclic_timer()
245 if (TIME_LESS_THAN(next_timeout_time, now)) { in lwip_cyclic_timer()
354 u32_t now; in sys_check_timeouts() local
359 now = sys_now(); in sys_check_timeouts()
373 if (TIME_LESS_THAN(now, tmptimeout->time)) { in sys_check_timeouts()
406 u32_t now; in sys_restart_timeouts() local
414 now = sys_now(); in sys_restart_timeouts()
418 t->time = (t->time - base) + now; in sys_restart_timeouts()
428 u32_t now; in sys_timeouts_sleeptime() local
[all …]
/components/net/lwip/lwip-2.0.3/src/core/
A Dtimeouts.c208 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()
/components/libc/cplusplus/cpp11/gcc/
A Dutils.cpp14 tick_clock::time_point tick_clock::now() in now() function in tick_clock
22 real_time_clock::time_point real_time_clock::now() noexcept in now() function in real_time_clock
A D__utils.h42 static time_point now();
56 now() noexcept;
A Dcondition_variable78 return (Clock::now() < abs_time) ? cv_status::no_timeout : cv_status::timeout;
96 return wait_until(lock, real_time_clock::now() + rel_time);
104 return wait_until(lock, real_time_clock::now() + rel_time, std::move(pred));
208 return wait_until(lock, real_time_clock::now() + rel_time);
216 return wait_until(lock, real_time_clock::now() + rel_time, std::move(pred));
A Dthread233 auto now = Clock::now();
234 if (abs_time > now)
235 sleep_for(abs_time - now);
/components/libc/cplusplus/cpp11/armclang/
A Dcondvar.cpp143 __ARM_TPL_timespec_t now; in __ARM_TPL_condvar_timedwait() local
144 if (__ARM_TPL_clock_realtime(&now) != 0) in __ARM_TPL_condvar_timedwait()
147 …unsigned int timeout_ms = (__ts->tv_sec - now.tv_sec) * 1000 + (__ts->tv_nsec - now.tv_nsec) / 100… in __ARM_TPL_condvar_timedwait()
/components/net/lwip/lwip-1.4.1/src/core/
A Dtimers.c366 u32_t now; in sys_check_timeouts() local
368 now = sys_now(); in sys_check_timeouts()
370 diff = now - timeouts_last_time; in sys_check_timeouts()
381 timeouts_last_time = now; in sys_check_timeouts()
/components/net/lwip/lwip-1.4.1/
A DUPGRADING25 (ERR_ABRT now means the applicaiton has called tcp_abort!)
33 now set errno to EWOULDBLOCK/EAGAIN, not ETIMEDOUT.
47 * Moved stack-internal parts of tcp.h to tcp_impl.h, tcp.h now only contains
105 * The heap now may be moved to user-defined memory by defining
119 * Changed the semantics of ARP_QUEUEING==0: ARP_QUEUEING now cannot be turned
138 * Removed packing from ip_addr_t, the packed version is now only used in protocol headers
A DCHANGELOG1471 (flag now cleared)
2061 updated to call lwip_socket_init() now.
2186 is now based on TCP_MSS instead of pcb->mss (on passive open now effectively
2281 allocation. It now returns NULL.
2478 MEMP_NUM_NETCONN in sockets.c right now.
2972 * DEBUGF now is LWIP_DEBUGF
3065 * struct ip_addr now packed.
3104 * ARP timer now implemented.
3221 errors now have the correct type (err_t).
3278 work correctly. This has now been fixed.
[all …]
/components/net/lwip/lwip-2.1.2/
A DUPGRADING25 * socket API: according to the standard, SO_ERROR now only returns asynchronous errors.
36 * The IPv6 implementation now supports address scopes. (See LWIP_IPV6_SCOPES documentation
51 supported any more, netif->state is interpreted as an u8_t port number now
68 … "ip4-address-valid", a netif will now not be used for transmission if not up) -> even a DHCP netif
115 is now available
159 (ERR_ABRT now means the applicaiton has called tcp_abort!)
167 now set errno to EWOULDBLOCK/EAGAIN, not ETIMEDOUT.
181 * Moved stack-internal parts of tcp.h to tcp_impl.h, tcp.h now only contains
239 * The heap now may be moved to user-defined memory by defining
253 * Changed the semantics of ARP_QUEUEING==0: ARP_QUEUEING now cannot be turned
[all …]
A DCHANGELOG2680 (flag now cleared)
3270 updated to call lwip_socket_init() now.
3395 is now based on TCP_MSS instead of pcb->mss (on passive open now effectively
3490 allocation. It now returns NULL.
3687 MEMP_NUM_NETCONN in sockets.c right now.
4181 * DEBUGF now is LWIP_DEBUGF
4274 * struct ip_addr now packed.
4313 * ARP timer now implemented.
4430 errors now have the correct type (err_t).
4487 work correctly. This has now been fixed.
[all …]
/components/net/lwip/lwip-2.0.3/
A DUPGRADING16 supported any more, netif->state is interpreted as an u8_t port number now
33 … "ip4-address-valid", a netif will now not be used for transmission if not up) -> even a DHCP netif
80 is now available
124 (ERR_ABRT now means the applicaiton has called tcp_abort!)
132 now set errno to EWOULDBLOCK/EAGAIN, not ETIMEDOUT.
146 * Moved stack-internal parts of tcp.h to tcp_impl.h, tcp.h now only contains
204 * The heap now may be moved to user-defined memory by defining
218 * Changed the semantics of ARP_QUEUEING==0: ARP_QUEUEING now cannot be turned
237 * Removed packing from ip_addr_t, the packed version is now only used in protocol headers
A DCHANGELOG2427 (flag now cleared)
3017 updated to call lwip_socket_init() now.
3142 is now based on TCP_MSS instead of pcb->mss (on passive open now effectively
3237 allocation. It now returns NULL.
3434 MEMP_NUM_NETCONN in sockets.c right now.
3928 * DEBUGF now is LWIP_DEBUGF
4021 * struct ip_addr now packed.
4060 * ARP timer now implemented.
4177 errors now have the correct type (err_t).
4234 work correctly. This has now been fixed.
[all …]
/components/utilities/ulog/syslog/
A Dsyslog.c185 time_t now = time(RT_NULL); in syslog_formater() local
188 tm = gmtime_r(&now, &tm_tmp); in syslog_formater()
/components/net/lwip/lwip-2.0.3/doc/
A Dppp.txt479 * Previous PPP API used an integer to identify PPP sessions, we are now
490 * Previous PPP API used CamelCase, we are now using snake_case.
493 PPPoS functions are now prefixed pppos_ and PPPoE functions are now prefixed
494 pppoe_, common functions are now prefixed ppp_.
499 * Only the following include files should now be used in user application:
521 * DNS servers are now only remotely asked if LWIP_DNS is set and if
522 ppp_set_usepeerdns() is set to true, they are now automatically registered
526 * PPPoS does not use the SIO API anymore, as such it now requires a serial
529 * PPP_MAXIDLEFLAG is now in ms instead of jiffies
/components/net/lwip/lwip-2.1.2/doc/
A Dppp.txt479 * Previous PPP API used an integer to identify PPP sessions, we are now
490 * Previous PPP API used CamelCase, we are now using snake_case.
493 PPPoS functions are now prefixed pppos_ and PPPoE functions are now prefixed
494 pppoe_, common functions are now prefixed ppp_.
499 * Only the following include files should now be used in user application:
521 * DNS servers are now only remotely asked if LWIP_DNS is set and if
522 ppp_set_usepeerdns() is set to true, they are now automatically registered
526 * PPPoS does not use the SIO API anymore, as such it now requires a serial
529 * PPP_MAXIDLEFLAG is now in ms instead of jiffies
/components/net/lwip/lwip-2.0.3/src/apps/lwiperf/
A Dlwiperf.c204 u32_t now, duration_ms, bandwidth_kbitpsec; in lwip_tcp_conn_report() local
205 now = sys_now(); in lwip_tcp_conn_report()
206 duration_ms = now - conn->time_started; in lwip_tcp_conn_report()
263 u32_t now = sys_now(); in lwiperf_tcp_client_send_more() local
264 u32_t diff_ms = now - conn->time_started; in lwiperf_tcp_client_send_more()
/components/net/lwip/lwip-2.1.2/src/apps/lwiperf/
A Dlwiperf.c232 u32_t now, duration_ms, bandwidth_kbitpsec; in lwip_tcp_conn_report() local
233 now = sys_now(); in lwip_tcp_conn_report()
234 duration_ms = now - conn->time_started; in lwip_tcp_conn_report()
291 u32_t now = sys_now(); in lwiperf_tcp_client_send_more() local
292 u32_t diff_ms = now - conn->time_started; in lwiperf_tcp_client_send_more()
/components/utilities/ulog/
A Dulog.c278 static struct timeval now; in ulog_head_formater() local
283 if (gettimeofday(&now, RT_NULL) >= 0) in ulog_head_formater()
285 t = now.tv_sec; in ulog_head_formater()
294 long old_usec = now.tv_usec; in ulog_head_formater()
297 gettimeofday(&now, RT_NULL); in ulog_head_formater()
300 if (now.tv_usec != old_usec) in ulog_head_formater()
307 … rt_snprintf(log_buf + log_len, ULOG_LINE_BUF_SIZE - log_len, ".%03d", now.tv_usec / 1000); in ulog_head_formater()
/components/net/lwip/lwip-1.4.1/doc/
A Dsavannah.txt90 We can now commit the merge result.
93 If this worked out OK, we now move the tag in the DEVEL branch
131 A new 0.6.3 release is now available here:
/components/lwp/terminal/freebsd/
A Dtty_ttydisc.c243 struct timeval end, now, left; in ttydisc_read_raw_read_timer() local
251 getmicrotime(&now); in ttydisc_read_raw_read_timer()
252 timevaladd(&end, &now); in ttydisc_read_raw_read_timer()
267 getmicrotime(&now); in ttydisc_read_raw_read_timer()
268 if (timevalcmp(&now, &end, >)) in ttydisc_read_raw_read_timer()
271 timevalsub(&left, &now); in ttydisc_read_raw_read_timer()

Completed in 44 milliseconds

12