home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / NeoIntroTCL3.0 folder / TCL / NeoBench / Includes / NeoBench.h < prev   
Encoding:
C/C++ Source or Header  |  1994-07-03  |  1.2 KB  |  60 lines  |  [TEXT/KAHL]

  1. /****
  2.  * CNeoBenchDoc.h
  3.  *
  4.  *    Document class for a typical application.
  5.  *
  6.  ****/
  7.  
  8. #ifndef _H_NeoBench
  9. #define    _H_NeoBench            /* Include this file only once */
  10. #include <time.h>
  11.  
  12. /*
  13.  * A NeoPhase structure,  containing a target string,
  14.  * number of iterations done,  and a soFar in milliseconds.
  15.  */
  16.  
  17. enum phases {
  18.     kNoPhase    = -1,
  19.     kMinPhase    = 0,
  20.     kInsert        = kMinPhase,
  21.     kRandomly,
  22.     kSerially,
  23.     kChange,
  24.     kDelete,
  25.     kMaxPhase    = kDelete
  26. };
  27.  
  28. // Indices into the array going across.  There are three of them
  29. enum cols {
  30.     kMinCol        = 0,
  31.     kTargetCol    = kMinCol,
  32.     kSoFar,
  33.     kPerRecord,
  34.     kTotal,
  35.     kMaxCol        = kTotal
  36. };
  37.  
  38. enum states {
  39.     kStop,
  40.     kStart
  41. };
  42.  
  43. typedef struct NeoPhase {
  44.     Boolean    dirty;        /* Do values for this phase need updating?    */
  45. #ifdef qNeoThreads
  46.     short    threadCount;/* Number of threads to use for this phase    */
  47. #endif
  48.     long    target;        /* Copied from TextBox field in main pane   */
  49.     long    delta;        /* Initial count */
  50.     long    done;        /* Number of operations done so far            */
  51.     long    committed;    /* Number of operations done so far            */
  52.     long    soFar;        /* Total time units in Milliseconds so far    */
  53. } NeoPhase;
  54.  
  55. #define k30MicroMinutes        -(1800000000L)
  56.  
  57. extern long gLoopOverhead;    // Timer Manager Overhead
  58.  
  59. #endif
  60.