Project: engagement_recognition

License: BSD

Dependencies:

Used by: None

All Packages

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

#include "engagement_macros.h"
#include <stdio.h>
#include <sys/time.h>
Include dependency graph for engagement_macros.cpp:

Go to the source code of this file.

Functions

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

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