Laelaps  2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
laeThread.cxx File Reference

The Laelaps thread base class implementation. More...

#include <sys/time.h>
#include <time.h>
#include <limits.h>
#include <unistd.h>
#include <stdio.h>
#include <pthread.h>
#include <sched.h>
#include <math.h>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "Laelaps/laelaps.h"
#include "Laelaps/laeUtils.h"
#include "Laelaps/laeThread.h"

Go to the source code of this file.

Functions

static void prts (string what, struct timespec ts)
 Print out timespec value to stderr. More...
 

Detailed Description

The Laelaps thread base class implementation.

LastChangedDate
2015-09-05 10:00:50 -0700 (Sat, 05 Sep 2015)
Rev
4074
Copyright
© 2015-2018. RoadNarrows LLC.
http://www.roadnarrows.com
All Rights Reserved

Definition in file laeThread.cxx.

Function Documentation

static void prts ( string  what,
struct timespec  ts 
)
static

Print out timespec value to stderr.

Parameters
whatWhat timespec.
txTimespec.

Definition at line 77 of file laeThread.cxx.

78 {
79  fprintf(stderr, "%s = %ld.%09ld\n", what.c_str(), ts.tv_sec, ts.tv_nsec);
80 }