IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 20, 2005, 4:11:16 PM (21 years ago)
Author:
drobbin
Message:

Implemented prototype and new code for psTimer fxns, tested, and debugged

Location:
trunk/psLib/test/astro
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astro/tst_psTime_04.c

    r5018 r5083  
    1515 *  @author  Eric Van Alst, MHPCC
    1616 *
    17  *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
    18  *  @date  $Date: 2005-09-13 01:39:13 $
     17 *  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
     18 *  @date  $Date: 2005-09-21 02:11:16 $
    1919 *
    2020 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3232static psS32 testTimeInit5(void);
    3333static psS32 testTimeInit6(void);
     34static psS32 testTimer1(void);
    3435
    3536testDescription tests[] = {
     
    4041                              {testTimeInit5,000,"p_psTimeInit",0,false},
    4142                              {testTimeInit6,000,"p_psTimeInit",0,false},
     43                              {testTimer1,000,"psTimer",0,false},
    4244                              {NULL}
    4345                          };
     
    105107}
    106108
     109psS32 testTimer1(void)
     110{
     111    psF64 testTime = 0.0;
     112    psF64 testTime2 = 0.0;
     113    psF64 testTime3 = 0.0;
     114
     115    if ( !psTimerStart("newTime") ) {
     116        printf("TimerStart Failed\n");
     117        return 1;
     118    }
     119    testTime = psTimerMark("newTime");
     120    if (testTime == 0.0) {
     121        printf("TimerMark Failed\n");
     122        return 2;
     123    }
     124    testTime2 = psTimerClear("newTime");
     125    if (testTime2 == 0.0) {
     126        printf("TimerClear Failed\n");
     127        return 3;
     128    }
     129    psTimerStart("newTime");
     130    testTime3 = psTimerStop();
     131    if (testTime3 == 0.0) {
     132        printf("TimerStop Failed\n");
     133        return 4;
     134    }
     135    return 0;
     136}
     137
  • trunk/psLib/test/astro/verified/tst_psTime_04.stderr

    r4547 r5083  
    7373---> TESTPOINT PASSED (psTime{p_psTimeInit} | tst_psTime_04.c)
    7474
     75/***************************** TESTPOINT ******************************************\
     76*             TestFile: tst_psTime_04.c                                            *
     77*            TestPoint: psTime{psTimer}                                            *
     78*             TestType: Positive                                                   *
     79\**********************************************************************************/
     80
     81
     82---> TESTPOINT PASSED (psTime{psTimer} | tst_psTime_04.c)
     83
Note: See TracChangeset for help on using the changeset viewer.