benchmark (community library)

Summary

Name Value
Name benchmark
Version 1.0.2
Installs 67
Author Julien Vanier julien@particle.io
URL https://github.com/monkbroc/particle-benchmark
Repository https://github.com/monkbroc/particle-benchmark.git
Download .tar.gz
All Versions 1.0.2, 1.0.1

A simple code execution time library

Example Build Testing

Device OS Version:

This table is generated from an automated build. Success only indicates that the code compiled successfully.

Library Read Me

This content is provided by the library maintainer and has not been validated or approved.

Benchmark

A simple code execution time library for Particle devices (Photon, Electron)

Usage

#include "benchmark.h"

void loop() {
uint32_t duration = Benchmark.measure([&] {
// do long stuff here
});

// or measure a whole function
uint32_t fnDuration = Benchmark.measure(longFunction);
}

See complete example in the examples directory.

License

Copyright 2016 Julien Vanier Released under the MIT license

Browse Library Files