timeUtilities.h File Reference

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

#include <string>

Include dependency graph for timeUtilities.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  dlr
namespace  dlr::portability

Enumerations

enum  TimeZone { DLR_TZ_GMT, DLR_TZ_LOCAL }

Functions

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::getISOTime (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.
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.


Detailed Description

Header 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.h.


Generated on Fri Oct 17 16:09:31 2008 for dlrPortability Utility Library by  doxygen 1.5.5