Vuo  2.2.1
Static Public Member Functions | List of all members
VuoTimeUtilities Class Reference

Description

Functions for measuring times at microsecond precision.

Definition at line 15 of file VuoTimeUtilities.hh.

Static Public Member Functions

static double getCurrentTimeInSeconds (void)
 Returns a floating-point representation of the number of seconds since 1970 (the Unix Epoch). More...
 
static struct timeval getCurrentTime (void)
 Returns a structure containing the number of seconds and microseconds since 1970 (the Unix Epoch). More...
 
static struct timeval getElapsedTime (const struct timeval &start, const struct timeval &end)
 Returns a structure containing the number of seconds and microseconds elapsed between start and end. More...
 
static void printTime (const struct timeval &time)
 Prints time to stdout. More...
 

Member Function Documentation

◆ getCurrentTime()

struct timeval VuoTimeUtilities::getCurrentTime ( void  )
static

Returns a structure containing the number of seconds and microseconds since 1970 (the Unix Epoch).

Definition at line 16 of file VuoTimeUtilities.cc.

◆ getCurrentTimeInSeconds()

double VuoTimeUtilities::getCurrentTimeInSeconds ( void  )
static

Returns a floating-point representation of the number of seconds since 1970 (the Unix Epoch).

Definition at line 16 of file VuoTimeUtilities.cc.

◆ getElapsedTime()

struct timeval VuoTimeUtilities::getElapsedTime ( const struct timeval &  start,
const struct timeval &  end 
)
static

Returns a structure containing the number of seconds and microseconds elapsed between start and end.

Definition at line 16 of file VuoTimeUtilities.cc.

◆ printTime()

void VuoTimeUtilities::printTime ( const struct timeval &  time)
static

Prints time to stdout.

Definition at line 47 of file VuoTimeUtilities.cc.


The documentation for this class was generated from the following files: