gPTP Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LinuxTimer Class Reference

#include <linux_hal_common.hpp>

Inheritance diagram for LinuxTimer:
Inheritance graph
Collaboration diagram for LinuxTimer:
Collaboration graph

Public Member Functions

virtual unsigned long sleep (unsigned long micros)
 Sleeps for a given amount of time in microsseconds. More...
 

Protected Member Functions

 LinuxTimer ()
 

Friends

class LinuxTimerFactory
 

Detailed Description

Extends the OSTimer generic class to Linux

Constructor & Destructor Documentation

LinuxTimer::LinuxTimer ( )
inlineprotected

Destroys linux timer

Member Function Documentation

virtual unsigned long LinuxTimer::sleep ( unsigned long  micros)
virtual

Sleeps for a given amount of time in microsseconds.

Parameters
microsTime in micro-seconds
Returns
-1 if error, micros (input argument) if success

Implements OSTimer.


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