Changeset 895 in Sophya for trunk/SophyaLib/SysTools/ctimer.h


Ignore:
Timestamp:
Apr 12, 2000, 7:49:54 PM (25 years ago)
Author:
ansari
Message:

Documentation de fichiers - Reza 12/4/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/ctimer.h

    r241 r895  
    11// This may look like C code, but it is really -*- C++ -*-
    22//
    3 // $Id: ctimer.h,v 1.2 1999-04-21 13:12:00 ansari Exp $
     3// $Id: ctimer.h,v 1.3 2000-04-12 17:49:41 ansari Exp $
    44//
    55
     
    88#define CTIMER_SEEN
    99
     10#include "machdefs.h"
    1011#include <sys/types.h>
    1112#include <time.h>
    1213#include <iostream.h>
    1314#include <stdio.h>
    14 #include "machdefs.h"
     15#include <string>
    1516
    1617// <summary> Permet de chronometrer des fonctions. </summary>
     
    2223
    2324// La macro SPLITTIME lui permet d'afficher des temps partiels.
     25namespace SOPHYA {
     26
     27//! Simple chronometer class
    2428class Timer  {
    2529public:
     
    3539
    3640  // Sert a eviter que GNU ne pretende qu'on utilise pas l'objet...
     41  /*! To avoid not used object compiler warnings */
    3742  void Nop() {}
    3843
     
    4045  clock_t cpu0, cpuSplit;
    4146  time_t  elapse0, elapseSplit;
    42   const char* timerName;
     47  string timerName;
    4348};
     49
     50} // namespace SOPHYA
    4451
    4552#define TIMEN(x)  Timer timer(x); timer.Nop();
Note: See TracChangeset for help on using the changeset viewer.