Home
last modified time | relevance | path

Searched refs:curtime (Results 1 – 24 of 24) sorted by relevance

/external/libcups/cups/
Dtempfile.c49 DWORD curtime; /* Current time */ in cupsTempFd() local
51 struct timeval curtime; /* Current time */ in cupsTempFd() local
110 curtime = GetTickCount() + tries; in cupsTempFd()
116 snprintf(filename, (size_t)len - 1, "%s/%05lx%08lx", tmpdir, GetCurrentProcessId(), curtime); in cupsTempFd()
122 gettimeofday(&curtime, NULL); in cupsTempFd()
128 …)len - 1, "%s/%05x%08x", tmpdir, (unsigned)getpid(), (unsigned)(curtime.tv_sec + curtime.tv_usec +… in cupsTempFd()
Ddebug.c91 struct timeval curtime; /* Current time */ in _cups_debug_printf() local
136 gettimeofday(&curtime, NULL); in _cups_debug_printf()
138 debug_thread_id(), (int)((curtime.tv_sec / 3600) % 24), in _cups_debug_printf()
139 (int)((curtime.tv_sec / 60) % 60), in _cups_debug_printf()
140 (int)(curtime.tv_sec % 60), (int)(curtime.tv_usec / 1000)); in _cups_debug_printf()
174 struct timeval curtime; /* Current time */ in _cups_debug_puts() local
219 gettimeofday(&curtime, NULL); in _cups_debug_puts()
221 debug_thread_id(), (int)((curtime.tv_sec / 3600) % 24), in _cups_debug_puts()
222 (int)((curtime.tv_sec / 60) % 60), in _cups_debug_puts()
223 (int)(curtime.tv_sec % 60), (int)(curtime.tv_usec / 1000), in _cups_debug_puts()
Dtestarray.c512 struct timeval curtime; /* Current time */ in get_seconds() local
515 gettimeofday(&curtime, NULL); in get_seconds()
516 return (curtime.tv_sec + 0.000001 * curtime.tv_usec); in get_seconds()
Dtls-gnutls.c79 time_t curtime; /* Current time */ in cupsMakeServerCredentials() local
146 curtime = time(NULL); in cupsMakeServerCredentials()
147 serial[0] = curtime >> 24; in cupsMakeServerCredentials()
148 serial[1] = curtime >> 16; in cupsMakeServerCredentials()
149 serial[2] = curtime >> 8; in cupsMakeServerCredentials()
150 serial[3] = curtime; in cupsMakeServerCredentials()
173 gnutls_x509_crt_set_activation_time(crt, curtime); in cupsMakeServerCredentials()
174 gnutls_x509_crt_set_expiration_time(crt, curtime + 10 * 365 * 86400); in cupsMakeServerCredentials()
573 time_t curtime; /* Current date/time */ in httpCredentialsGetTrust() local
575 time(&curtime); in httpCredentialsGetTrust()
[all …]
Dppd-util.c217 struct timeval curtime; /* Current time */ in cupsGetPPD3() local
263 gettimeofday(&curtime, NULL); in cupsGetPPD3()
270 (unsigned long)curtime.tv_sec, in cupsGetPPD3()
271 (unsigned long)curtime.tv_usec); in cupsGetPPD3()
Ddest.c3446 struct timeval curtime; /* Current time */ local
3463 gettimeofday(&curtime, NULL);
3465 …ps_dnssd_resolve_cb: curtime=%d.%06d, end_time=%d.%06d", (int)curtime.tv_sec, (int)curtime.tv_usec…
3467 return (curtime.tv_sec < resolve->end_time.tv_sec ||
3468 (curtime.tv_sec == resolve->end_time.tv_sec &&
3469 curtime.tv_usec < resolve->end_time.tv_usec));
3558 struct timeval curtime; /* Current time */ local
3711 gettimeofday(&curtime, NULL);
3812 cups_elapsed(&curtime);
3852 remaining -= cups_elapsed(&curtime);
Dfile.c1243 time_t curtime; /* Current time */ in cupsFileOpenFd() local
1246 curtime = time(NULL); in cupsFileOpenFd()
1251 header[4] = (unsigned char)curtime; in cupsFileOpenFd()
1252 header[5] = (unsigned char)(curtime >> 8); in cupsFileOpenFd()
1253 header[6] = (unsigned char)(curtime >> 16); in cupsFileOpenFd()
1254 header[7] = (unsigned char)(curtime >> 24); in cupsFileOpenFd()
Dadminutil.c83 time_t curtime; /* Current time */ in cupsAdminCreateWindowsPPD() local
168 curtime = time(NULL); in cupsAdminCreateWindowsPPD()
169 curdate = gmtime(&curtime); in cupsAdminCreateWindowsPPD()
/external/curl/docs/examples/
Dprogressfunc.c45 double curtime = 0; in xferinfo() local
47 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &curtime); in xferinfo()
52 if((curtime - myp->lastruntime) >= MINIMAL_PROGRESS_FUNCTIONALITY_INTERVAL) { in xferinfo()
53 myp->lastruntime = curtime; in xferinfo()
54 fprintf(stderr, "TOTAL TIME: %f \r\n", curtime); in xferinfo()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
D4-1.c34 struct timeval curtime; in t1_func() local
44 if (gettimeofday(&curtime, NULL) != 0) { in t1_func()
48 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in t1_func()
49 timeout.tv_nsec = curtime.tv_usec * 1000; in t1_func()
D2-2.c38 struct timeval curtime; in t1_func() local
55 if (gettimeofday(&curtime, NULL) != 0) { in t1_func()
59 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in t1_func()
60 timeout.tv_nsec = curtime.tv_usec * 1000; in t1_func()
D1-1.c37 struct timeval curtime; in t1_func() local
48 if (gettimeofday(&curtime, NULL) != 0) { in t1_func()
52 timeout.tv_sec = curtime.tv_sec; in t1_func()
53 timeout.tv_nsec = curtime.tv_usec * 1000; in t1_func()
D3-1.c37 struct timeval curtime; in t1_func() local
48 if (gettimeofday(&curtime, NULL) != 0) { in t1_func()
52 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in t1_func()
53 timeout.tv_nsec = curtime.tv_usec * 1000; in t1_func()
D2-1.c44 struct timeval curtime; in t1_func() local
55 if (gettimeofday(&curtime, NULL) != 0) { in t1_func()
59 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in t1_func()
60 timeout.tv_nsec = curtime.tv_usec * 1000; in t1_func()
D2-3.c37 struct timeval curtime; in t1_func() local
49 if (gettimeofday(&curtime, NULL) != 0) { in t1_func()
53 timeout.tv_sec = curtime.tv_sec; in t1_func()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
D2-2.c39 struct timeval curtime; in thr_func() local
51 if (gettimeofday(&curtime, NULL) != 0) { in thr_func()
55 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in thr_func()
56 timeout.tv_nsec = curtime.tv_usec * 1000; in thr_func()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
D2-2.c39 struct timeval curtime; in thr_func() local
51 if (gettimeofday(&curtime, NULL) != 0) { in thr_func()
55 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in thr_func()
56 timeout.tv_nsec = curtime.tv_usec * 1000; in thr_func()
/external/libcups/filter/
Drasterbench.c161 struct timeval curtime; /* Current time */ in get_time() local
164 gettimeofday(&curtime, NULL); in get_time()
165 return (curtime.tv_sec + 0.000001 * curtime.tv_usec); in get_time()
/external/ltp/lib/
Dparse_opts.c475 struct timeval curtime; in get_current_time() local
477 gettimeofday(&curtime, NULL); in get_current_time()
479 return (((uint64_t) curtime.tv_sec) * USECS_PER_SEC) + curtime.tv_usec; in get_current_time()
/external/ltp/utils/ffsb-6.0-rc2/
Dmain.c49 struct timeval curtime, difftime; in ffsb_poll_fn() local
50 gettimeofday(&curtime, NULL); in ffsb_poll_fn()
52 timersub(&curtime, &data->starttime, &difftime); in ffsb_poll_fn()
/external/ltp/testcases/kernel/fs/doio/
Dgrowfiles.c1560 struct timeval curtime; in main() local
1561 gettimeofday(&curtime, NULL); in main()
1562 ct = curtime.tv_sec * USECS_PER_SEC + in main()
1563 curtime.tv_usec; in main()
1567 gettimeofday(&curtime, NULL); in main()
1568 ct = curtime.tv_sec * USECS_PER_SEC + in main()
1569 curtime.tv_usec; in main()
/external/selinux/libsemanage/src/
Dsemanage_store.c1799 struct timeval origtime, curtime; in semanage_get_lock() local
1826 curtime.tv_sec = 1; in semanage_get_lock()
1827 curtime.tv_usec = 0; in semanage_get_lock()
1838 if (select(0, NULL, NULL, NULL, &curtime) == -1) { in semanage_get_lock()
/external/libavc/test/encoder/
Dmain.c1527 TIMER curtime ; in synchronous_encode() local
1823 GETTIME(&curtime); in synchronous_encode()
1824 ELAPSEDTIME(ps_app_ctxt->enc_last_time, curtime, timetaken, frequency); in synchronous_encode()
1825 ps_app_ctxt->enc_last_time = curtime; in synchronous_encode()
/external/libmtp/src/
Dlibmtp.c943 time_t curtime; in get_iso8601_stamp() local
947 curtime = time(NULL); in get_iso8601_stamp()
948 loctime = localtime(&curtime); in get_iso8601_stamp()