- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Interfaces/ElapsedTimeService.h

    00001
    00002 //
    00003 // Copyright (c) 2004           Model-based Embedded and Robotic Systems Group
    00004 // All Rights Reserved          Massachusetts Institute of Technology
    00005 //
    00006 // This software is provided as is. Model-based Embedded and Robotic Systems
    00007 // (MERS) group does not assume any responsibility.
    00008 //
    00009 // Organization:        Model-based Embedded and Robotic Systems Group
    00010 //                                      Massachusetts Institute of Technology
    00011 //
    00013
    00014
    00015 #ifndef MERS_INTERFACES_ELAPSED_TIME_SERVICE_HEADERFILE
    00016 #define MERS_INTERFACES_ELAPSED_TIME_SERVICE_HEADERFILE
    00017
    00018 #include <Mers/Utils/Lang/ReferencedObject.h>
    00019 #include <Mers/Utils/Lang/Time.h>
    00020
    00021 namespace Mers {
    00022         namespace Interfaces {
    00023
    00024                 class TimeService;
    00025
    00033                 class ElapsedTimeService : public Mers::Utils::Lang::ReferencedObject
    00034                 {
    00035                 public:
    00051                         ElapsedTimeService(TimeService * tService);
    00052
    00056                         virtual ~ElapsedTimeService();
    00057
    00065                         virtual Mers::Utils::Lang::Time elapsedTime();
    00066
    00074                         virtual double elapsed();
    00075
    00080                         virtual void resetTime();
    00081
    00082                 protected:
    00085                         TimeService * mTimeService;
    00086
    00088                         double mStartTime;
    00089                 };
    00090         }
    00091 }
    00092
    00093 #endif // MERS_INTERFACES_ELAPSED_TIME_SERVICE_HEADERFILE
    00094