INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

libs/orcaice/timeutils.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2009 Alex Brooks, Alexei Makarenko, Tobias Kaupp
00005  *
00006  * This copy of Orca is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 
00011 #ifndef ORCAICE_TIME_UTILITIES_H
00012 #define ORCAICE_TIME_UTILITIES_H
00013 
00014 #include <orca/common.h>
00015 #include <IceUtil/Time.h>
00016 
00017 namespace orcaice
00018 {
00019 
00021 
00034 
00036 orca::Time getNow();
00038 void setToNow( orca::Time & t );
00039 
00041 IceUtil::Time toIceTime( const orca::Time & t );
00043 orca::Time toOrcaTime( const IceUtil::Time & t );
00044 
00047 inline std::string toDateTime( const orca::Time &t )
00048 { return toIceTime(t).toDateTime(); }
00049 
00055 orca::Time toOrcaTime( double seconds );
00060 double timeAsDouble( const orca::Time &t );
00062 void add( orca::Time &t, double seconds );
00064 void subtract( orca::Time &t, double seconds );
00065 
00068 orca::TimeOfDay toOrcaTimeOfDay( const IceUtil::Time & t );
00071 orca::Date toOrcaDate( const IceUtil::Time & t );
00072 
00075 orca::Time timeDiff( const orca::Time &t1, const orca::Time &t2 );
00078 double timeDiffAsDouble( const orca::Time &t1, const orca::Time &t2 );
00079 
00081 
00082 
00083 } // namespace
00084 
00085 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5