timeUtilities.cpp File Reference

Source file declaring some useful time-related routines. More...

#include <dlrCommon/exception.h>
#include <dlrPortability/timeUtilities.h>
#include <time.h>
#include <sys/time.h>
#include <sys/select.h>
#include <cmath>

Include dependency graph for timeUtilities.cpp:

Go to the source code of this file.


Namespaces

namespace  dlr::portability
 This namespace contains as much of the platform-specific code as possible, making the other libraries more readable.

Functions

void dlr::portability::preciseSleep (int milliseconds)
 This function causes the program to suspend execution for at least as many milliseconds as specified by its argument.
double dlr::portability::getCurrentTime ()
 This function returns the current time as a double, the number of seconds since some significant (and OS dependent) event in the distant past.
std::string dlr::portability::getISOTimeString (TimeZone tz=DLR_TZ_LOCAL)
 This function returns the current time as a string in the format "YYYY-MM-DD HH:MM:SS.ss".
void dlr::portability::portableSleep (double seconds)
 This function causes the program to suspend execution for at least as many seconds as specified by its argument.


Detailed Description

Source file declaring some useful time-related routines.

(C) Copyright 2004-2006 David LaRose, dlr@alumni.carnegiemellon.edu See accompanying LICENSE file for details.

Revision
1047
Date
2008-10-17 15:15:24 -0400 (Fri, 17 Oct 2008)

Definition in file timeUtilities.cpp.


Generated on Wed Nov 25 00:03:49 2009 for dlrPortability Utility Library by  doxygen 1.5.8