p_testtimer.cpp

Go to the documentation of this file.
00001 /*
00002  * This file: p_testtimer.cpp, is part of the Astrog software library
00003  * that uses the graphics processing unit (GPU) to accelerate
00004  * astronomy calculations. 
00005  *
00006  * Copyright (C) 2007  C. J. Harris, B. J. Mort
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2.1 of the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 
00021  * 02110-1301  USA
00022  */
00023 
00029 #include "libastrog_p_testtimer.h"
00030 
00031 namespace astrog {
00032 
00033 PipelineTestTimer::PipelineTestTimer()
00034 {
00035     timer = new Timer();
00036 }
00037 
00038 PipelineTestTimer::~PipelineTestTimer()
00039 {
00040     delete timer;
00041 }
00042         
00043 int PipelineTestTimer::execute()
00044 {
00045     int err = 0;
00046     timer->start();
00047     sleep(5);
00048     timer->stop();
00049     std::cout << timer->get_time() << std::endl;
00050     return err;
00051 }
00052 
00053 } // end namespace

Generated on Mon Mar 26 11:01:02 2007 for Astrog by doxygen 1.4.6 and hosted by SourceForge.net Logo