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

SourceForge.net Logo
Project
Download
Mailing lists

 

         

timeutils.h

00001 /*
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/orca.h>
00015 
00016 namespace orcaice
00017 {
00018 
00020 
00021 
00023 orca::Time getNow();
00025 void setToNow( orca::Time & t );
00026 
00028 IceUtil::Time toIceTime( const orca::Time & t );
00030 orca::Time toOrcaTime( const IceUtil::Time & t );
00031 
00037 orca::Time toOrcaTime( double seconds );
00042 double timeAsDouble( const orca::Time &t );
00044 void add( orca::Time &t, double seconds );
00046 void subtract( orca::Time &t, double seconds );
00047 
00050 orca::TimeOfDay toOrcaTimeOfDay( const IceUtil::Time & t );
00053 orca::Date toOrcaDate( const IceUtil::Time & t );
00054 
00057 orca::Time timeDiff( const orca::Time &t1, const orca::Time &t2 );
00060 double timeDiffAsDouble( const orca::Time &t1, const orca::Time &t2 );
00061 
00062 // NOTE: Time comparisons for orca::Time are done automatically by Ice.
00063 
00065 
00066 
00067 } // namespace
00068 
00069 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5