Giter VIP home page Giter VIP logo

timertest's Introduction

timertest

To build:

g++ ./timerfd.cc -W -O3 -g0 -o ./timerfd

To run:

Usage: ./timerfd [-i interval usecs, default 1000] [-n num iterations, default 10000] [-r realtime priority, default 0] [-p sched policy 0 = OTHER, 1 = RR, 2 = FIFO, default 0]

This application will track the timer fire time vs the target fire time over an number of iterations specified by the "-n" option. The timer interval can be adjusted using the "-i" option.

For "realtime" priorities "-r" other than 0 will require a schedule policy of 1 for round robin or 2 for fifo.

Example: ./timerfd -p 2 -r 10 begin 10000 iterations each 1000 usec long, est time 9.999000 sec

total time sec 9.999034, results in usec, dti min 3, max 106, mean 33.171400, stdv 5.292091

Where "dti" is the delta T for each iteration.

timertest's People

Contributors

jgiovatto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.