← Back

ofxTimestamp

github.com/paulobarcelos/ofxTimestamp · @paulobarcelos
OF 0.12 Releases Utilities

openFrameworks addon that writes a lightweight heartbeat timestamp file for watchdogs and external process monitoring.

2 0 Last commit 4mo ago Created 15y ago

Branches ahead of master

These branches have commits not yet on master — could be unmerged fixes or work in progress worth a look.

develop 1 commit ahead · last commit 15y ago

README

ofxTimestamp



Small openFrameworks addon for writing a heartbeat timestamp to disk at a fixed interval.

It is useful when another process needs a simple "is the app still alive?" signal without opening a socket, adding OSC, or building a heavier integration. The addon writes the current ofGetElapsedTimeMillis() value to bin/data/<filename>.txt.

Usage



#include "ofxTimestamp.h"

ofxTimestamp timestamp;

void ofApp::setup(){
    timestamp.setup(1.0f, "timestamp");
}

void ofApp::update(){
    timestamp.update();
}


Compatibility



Tested with openFrameworks 0.12.1 on macOS.

The example includes the standard openFrameworks Makefile flow:

cd example
make Debug
make RunDebug

Get this addon

HTTPS
SSH

Latest release

1.0.0 ofxTimestamp 1.0.0 published 4mo ago
First semantic release of ofxTimestamp.

  • Modernizes the example for current openFrameworks window setup.
  • Adds Makefile-based building for openFrameworks 0.12.1.
  • Replaces raw FILE* writes with ofBufferToFile.
  • Adds a friendlier README with usage and compatibility notes.
Verified with make Debug using openFrameworks 0.12.1 on macOS.