Searched refs:ticks (Results 1 - 25 of 81) sorted by relevance

1234

/vbox/src/VBox/Devices/PC/ipxe/src/arch/i386/include/ipxe/
H A Drdtsc_timer.h25 * Get current system time in ticks
27 * @ret ticks Current time, in ticks
31 unsigned long ticks; local
35 : "=a" ( ticks ) : "i" ( TSC_SHIFT ) : "edx" );
36 return ticks;
/vbox/src/VBox/Devices/PC/ipxe/src/arch/i386/interface/pcbios/
H A Dbios_timer.c32 * Get current system time in ticks
34 * @ret ticks Current time, in ticks
37 * (ticks today) and byte 0040:0070 (midnight crossover flag) instead
42 uint32_t ticks; local
51 get_real ( ticks, BDA_SEG, 0x006c );
60 return ( days + ticks );
/vbox/src/VBox/Devices/PC/ipxe/src/interface/linux/
H A Dlinux_timer.c42 * Get number of ticks per second
44 * @ret ticks_per_sec Number of ticks per second
52 * Get current system time in ticks
57 * @ret ticks Current time, in ticks
72 unsigned long ticks = (now.tv_sec - start.tv_sec) * linux_ticks_per_sec(); local
73 ticks += (now.tv_usec - start.tv_usec) / (long)(1000000 / linux_ticks_per_sec());
75 return ticks;
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/misc/
H A Dprinrval.c93 PRIntervalTime ticks; local
102 LL_L2UI(ticks, tock);
103 return ticks;
108 PRIntervalTime ticks; local
117 LL_L2UI(ticks, tock);
118 return ticks;
121 PR_IMPLEMENT(PRUint32) PR_IntervalToSeconds(PRIntervalTime ticks)
123 return ticks / PR_TicksPerSecond();
126 PR_IMPLEMENT(PRUint32) PR_IntervalToMilliseconds(PRIntervalTime ticks)
130 LL_UI2L(tock, ticks);
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dinrval.c82 PRIntervalTime ticks = PR_TicksPerSecond(); local
85 PR_fprintf(output, "PR_TicksPerSecond: %ld\n\n", ticks);
94 PR_fprintf(output, "PR_IntervalToSeconds(%ld): %ld\n", ticks, PR_IntervalToSeconds(ticks));
95 PR_fprintf(output, "PR_IntervalToMilliseconds(%ld): %ld\n", ticks, PR_IntervalToMilliseconds(ticks));
96 PR_fprintf(output, "PR_IntervalToMicroseconds(%ld): %ld\n\n", ticks, PR_IntervalToMicroseconds(ticks));
98 ticks *= 3;
99 PR_fprintf(output, "PR_IntervalToSeconds(%ld): %ld\n", ticks, PR_IntervalToSecond
152 PRIntervalTime ticks = PR_SecondsToInterval(seconds); local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/
H A Dprinrval.h78 ** These two constants define the range (in ticks / second) of the
124 ** Return the number of ticks per second for PR_IntervalNow's clock.
177 NSPR_API(PRUint32) PR_IntervalToSeconds(PRIntervalTime ticks); variable
178 NSPR_API(PRUint32) PR_IntervalToMilliseconds(PRIntervalTime ticks); variable
179 NSPR_API(PRUint32) PR_IntervalToMicroseconds(PRIntervalTime ticks); variable
H A Dprmon.h90 ** Wait for a notify on the monitor's condition variable. Sleep for "ticks"
91 ** amount of time (if "ticks" is PR_INTERVAL_NO_TIMEOUT then the sleep is
101 ** notify) or when the "ticks" timeout elapses.
105 NSPR_API(PRStatus) PR_Wait(PRMonitor *mon, PRIntervalTime ticks);
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dntsem.c60 _PR_MD_TIMED_WAIT_SEM(_MDSemaphore *md, PRIntervalTime ticks) argument
64 rv = WaitForSingleObject(md->sem, PR_IntervalToMilliseconds(ticks));
/vbox/src/VBox/Frontends/VirtualBox/src/extensions/
H A DQIAdvancedSlider.cpp53 /* Make sure ticks *always* positioned below: */
83 QRect ticks = style()->subControlRect(QStyle::CC_Slider, &opt, QStyle::SC_SliderTickmarks, this); local
84 ticks.setRect((s.width() - available) / 2, s.height() - ticks.y(), available, ticks.height());
92 QRect ticks = style()->subControlRect(QStyle::CC_Slider, &opt, QStyle::SC_SliderHandle, this) | local
94 ticks.setRect((s.width() - available) / 2, ticks.bottom() + 1, available, s.height() - ticks.bottom() - 1);
103 p.fillRect(ticks
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/os2/
H A Dos2sem.c68 _PR_MD_TIMED_WAIT_SEM(_MDSemaphore *md, PRIntervalTime ticks) argument
71 rv = DosWaitEventSem(md->sem, PR_IntervalToMilliseconds(ticks));
/vbox/src/VBox/Devices/PC/ipxe/src/arch/i386/core/
H A Dtimer2.c65 static void load_timer2 ( unsigned int ticks ) {
81 /* LSB of ticks */
82 outb(ticks & 0xFF, TIMER2_PORT);
83 /* MSB of ticks */
84 outb(ticks >> 8, TIMER2_PORT);
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/
H A Duxrng.c296 int ticks;
299 ticks=times(&buffer);
300 return _pr_CopyLowBits(buf, maxbytes, &ticks, sizeof(ticks));
318 int ticks;
321 ticks=times(&buffer);
322 return _pr_CopyLowBits(buf, maxbytes, &ticks, sizeof(ticks));
286 int ticks; local
307 int ticks; local
H A Ddarwin.c72 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
H A Ddgux.c75 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
H A Dnec.c66 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
H A Dosf1.c72 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
H A Dqnx.c68 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
H A Dsony.c74 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
H A Dsunos4.c62 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
H A Dbsdi.c84 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
H A Dfreebsd.c84 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
H A Dlinux.c88 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
/vbox/src/VBox/Devices/Audio/
H A Dnoaudio.c47 int64_t ticks; local
56 ticks = now - no->old_ticks;
59 /* Minimize the rounding error: samples = int((ticks * freq) / ticks_per_second + 0.5). */
60 samples = (int)((2 * ticks * hw->info.freq + ticks_per_second) / ticks_per_second / 2);
120 int64_t ticks = now - no->old_ticks; local
121 int64_t bytes = (ticks * hw->info.bytes_per_second)
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/beos/
H A Dbeos.c127 PRIntervalTime ticks; local
130 ticks = (PRUint32)time.tv_sec * PR_MSEC_PER_SEC; /* that's in milliseconds */
131 ticks += (PRUint32)time.tv_usec / PR_USEC_PER_MSEC; /* so's that */
132 return ticks;
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/bthreads/
H A Dbtmon.c144 ** Wait for a notify on the monitor's condition variable. Sleep for "ticks"
145 ** amount of time (if "ticks" is PR_INTERVAL_NO_TIMEOUT then the sleep is
155 ** notify) or when the "ticks" timeout elapses.
160 PR_Wait (PRMonitor *mon, PRIntervalTime ticks)
173 status = PR_WaitCondVar( mon->cvar, ticks );

Completed in 484 milliseconds

1234