Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

IndriTimer.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2004 University of Massachusetts.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010 */
00011 
00012 
00013 //
00014 // IndriTimer.hpp
00015 //
00016 // 13 August 2004 -- tds
00017 //
00018 
00019 #ifndef INDRI_INDRITIMER_HPP
00020 
00021 #include <iostream>
00022 #include "lemur-platform.h"
00025 class IndriTimer {
00026 private:
00028   UINT64 _start;
00029 
00030 public:
00031   IndriTimer();
00033   static UINT64 currentTime();
00035   void start();
00037   UINT64 elapsedTime() const;
00040   void printElapsedSeconds( std::ostream& out ) const;
00043   void printElapsedMicroseconds( std::ostream& out ) const;
00044 };
00045 
00046 #endif // INDRI_INDRITIMER_HPP
00047 

Generated on Wed Nov 3 12:58:58 2004 for Lemur Toolkit by doxygen1.2.18