1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
/*
SCREENClearTimeList.c
AUTHORS:
Allen.Ingling@nyu.edu awi
PLATFORMS:
Only OS X for now.
HISTORY:
1/26/05 awi Created.
DESCRIPTION:
Clears the list of times held by Screen. Time values, as returned by GetSecs, are added to the time list by
internal debugging routines enabled by Screen preferences.
Time values are read out of Screen by GetTimeList.
*/
#include "Screen.h"
// If you change the useString then also change the corresponding synopsis string in ScreenSynopsis.c
static char useString[] = "Screen('ClearTimelist');";
//
static char synopsisString[] =
"Clears the list of times held by Screen. Time values, as returned by GetSecs, are added to the time list by "
"internal debugging routines using Screen preferences. Time values are read out of Screen using GetTimeList. ";
static char seeAlsoString[] = "GetTimeList";
PsychError SCREENClearTimeList(void)
{
//all subfunctions should have these two lines.
PsychPushHelp(useString, synopsisString, seeAlsoString);
if(PsychIsGiveHelp()){PsychGiveHelp();return(PsychError_none);};
//cap the numbers of inputs and outputs
PsychErrorExit(PsychCapNumInputArgs(0)); //The maximum number of inputs
PsychErrorExit(PsychCapNumOutputArgs(0)); //The maximum number of outputs
//return the array
ClearTimingArray();
return(PsychError_none);
}
|