tclTimer.c File Reference

#include "tclInt.h"

Go to the source code of this file.

Data Structures

struct  TimerHandler
struct  AfterInfo
struct  AfterAssocData
struct  IdleHandler
struct  ThreadSpecificData

Defines

#define TCL_TIME_BEFORE(t1, t2)   (((t1).sec<(t2).sec) || ((t1).sec==(t2).sec && (t1).usec<(t2).usec))
#define TCL_TIME_DIFF_MS(t1, t2)

Functions

Tcl_TimerToken Tcl_CreateTimerHandler (int milliseconds, Tcl_TimerProc *proc, ClientData clientData)
Tcl_TimerToken TclCreateAbsoluteTimerHandler (Tcl_Time *timePtr, Tcl_TimerProc *proc, ClientData clientData)
void Tcl_DeleteTimerHandler (Tcl_TimerToken token)
void Tcl_DoWhenIdle (Tcl_IdleProc *proc, ClientData clientData)
void Tcl_CancelIdleCall (Tcl_IdleProc *proc, ClientData clientData)
int TclServiceIdle (void)
int Tcl_AfterObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])


Define Documentation

#define TCL_TIME_BEFORE ( t1,
t2   )     (((t1).sec<(t2).sec) || ((t1).sec==(t2).sec && (t1).usec<(t2).usec))

Definition at line 125 of file tclTimer.c.

Referenced by TclCreateAbsoluteTimerHandler().

#define TCL_TIME_DIFF_MS ( t1,
t2   ) 

Value:

(1000*((Tcl_WideInt)(t1).sec - (Tcl_WideInt)(t2).sec) + \
            ((long)(t1).usec - (long)(t2).usec)/1000)

Definition at line 128 of file tclTimer.c.


Function Documentation

void Tcl_CancelIdleCall ( Tcl_IdleProc *  proc,
ClientData  clientData 
)

Tcl_TimerToken Tcl_CreateTimerHandler ( int  milliseconds,
Tcl_TimerProc *  proc,
ClientData  clientData 
)



Generated on Wed Mar 12 12:18:34 2008 by  doxygen 1.5.1