|
orca-robotics INTRODUCTION Overview Download and Install Quick Start Documentation Publications REPOSITORY Interfaces Components Libraries Utilities Software Map DEVELOPER Tutorials Examples Dev Guide Dashboard Wiki login/pass: orca/orca PEOPLE Contributors Users Project Download Mailing lists
|
timeutils.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 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 00022 00024 orca::Time getNow(); 00026 void setToNow( orca::Time & t ); 00027 00029 IceUtil::Time toIceTime( const orca::Time & t ); 00031 orca::Time toOrcaTime( const IceUtil::Time & t ); 00032 00038 orca::Time toOrcaTime( double seconds ); 00043 double timeAsDouble( const orca::Time &t ); 00045 void add( orca::Time &t, double seconds ); 00047 void subtract( orca::Time &t, double seconds ); 00048 00051 orca::TimeOfDay toOrcaTimeOfDay( const IceUtil::Time & t ); 00054 orca::Date toOrcaDate( const IceUtil::Time & t ); 00055 00058 orca::Time timeDiff( const orca::Time &t1, const orca::Time &t2 ); 00061 double timeDiffAsDouble( const orca::Time &t1, const orca::Time &t2 ); 00062 00063 // NOTE: Time comparisons for orca::Time are done automatically by Ice. 00064 00066 00067 00068 } // namespace 00069 00070 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)
1.4.5