Data Structures | |
struct | MICRO |
Macros | |
#define | current_msec() current_time() |
Functions | |
UINT32 | current_time (void) |
UINT32 | current_micro (MICRO FARTYPE *m) |
UINT32 | current_usec (void) |
void | msec_delay (UINT32 n) |
double | current_double_usec (void) |
INT16 | eyelink_reset_clock (INT16 enable) |
These functions are used to access display time
#define current_msec | ( | ) | current_time() |
See current_time()
double current_double_usec | ( | void | ) |
Returns the current microsecond as double (56 bits) since the initialization. Equivalent to current_micro()
and current_usec()
.
Example: See current_usec()
\sa \c current_micro(), \c current_usec(), \c current_msec(), \c current_time() and \c msec_delay()
UINT32 current_micro | ( | MICRO FARTYPE * | m | ) |
Returns the current microsecond since the initialization. Equivalent to current_usec()
and current_double_usec()
.
m | Pointer to MICRO structure. |
MICRO
structure if the pointer is not NULL
.Example: See current_usec()
current_usec()
, current_double_usec()
, current_msec()
, current_time()
and msec_delay()
UINT32 current_time | ( | void | ) |
Returns the current millisecond since the initialization.
close_eyelink_system()
is called at the end. The call to current_msec()
is always equivalent to current_time()
. Example:
Output:
UINT32 current_usec | ( | void | ) |
Returns the current microsecond since the initialization. Equivalent to current_micro()
and current_double_usec()
.
current_usec()
is equivalent to current_micro(NULL)
. The function is very platform dependent. Platforms such as windows 95, 98, ME may not return usec properly. Ie. It may return current_time() * 1000
. Example:
Output:
current_micro()
, current_double_usec()
, current_msec()
, current_time()
and msec_delay()
INT16 eyelink_reset_clock | ( | INT16 | enable | ) |
Initializes the high frequency clock.
With TSR interface under msdos, Start/stop timing resources.
enable | Usually <enable> is 1 . However, in MS-DOS passing 0 will cleanup the timing resources. In other platforms passing 0 has no effect. |
void msec_delay | ( | UINT32 | n | ) |
Does a unblocked delay using current_time()
.
n | n milliseconds to delay. |
Example:
Output:
current_msec()
and pump_delay()