Project: engagement_recognition

License: BSD

Dependencies:

Used by: None

All Packages

engagement_recognition/src/recognition/lib/engagement_macros.h File Reference

#include <string>
Include dependency graph for engagement_macros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CURRENT_TIME   current_milliseconds()
#define DURATION_PASSED(s, d)   duration_passed(s, d)
#define UNDEFINED_TIME   0

Functions

unsigned long current_milliseconds ()
bool duration_passed (unsigned long start, unsigned long duration)

Define Documentation

#define CURRENT_TIME   current_milliseconds()

Macro for grabbing the current time in milliseconds.

Definition at line 44 of file engagement_macros.h.

#define DURATION_PASSED ( s,
 )     duration_passed(s, d)

Macro for determining if a duration has passed.

Definition at line 46 of file engagement_macros.h.

#define UNDEFINED_TIME   0

Store a macro for the undefined time value.

Definition at line 41 of file engagement_macros.h.


Function Documentation

unsigned long current_milliseconds (  ) 

Return the current time in milliseconds.

Returns:
The current time in milliseconds

Definition at line 40 of file engagement_macros.cpp.

bool duration_passed ( unsigned long  start,
unsigned long  duration 
)

Determine if a duration has passed.

This function determines if the specified duration has passed and if it has it returns 1, otherwise it returns 0.

Parameters:
start The starting time
duration The duration
Returns:
True if passed, false otherwise

Definition at line 50 of file engagement_macros.cpp.


engagement_recognition
Author(s): Brett Ponsler (bponsler (at) wpi (dot) edu)
autogenerated on Fri Sep 9 10:35:48 2011