home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_03 / 9n03111a < prev    next >
Text File  |  1991-01-15  |  796b  |  26 lines

  1.  
  2. In this example, the size of a data pointer is 2, and the size 
  3. of a function pointer is 2
  4. The data to be accessed is as follows:
  5.  
  6. The array provides access to...
  7. This is field one
  8. Here's the second field
  9. Field Three at your service
  10. Art was here
  11.  
  12. Each function returns the count of clock ticks.  The lower the better.
  13.  
  14. Accessing UsingS_Object(): result = 14
  15. Accessing UsingStructure(): result = 18
  16. Accessing UsingArray(): result = 16
  17. Accessing UsingStrucAndArrayBoth()(: result = 25
  18. Accessing EmptyLoop(): result = 8
  19. Accessing LoopToLoop(): result = 57
  20. Accessing OneLoop(): result = 48
  21.  
  22. 1. Sum of time for (UsingStructure + UsingArray) = 34
  23. 2. Sum less time for both in one loop = 9
  24. 3. Time to do an empty loop = 8
  25. 4. Error (item 3 less item 2 should be near zero) = -1
  26.