Skip to content
/ nsl Public

C/C++ Library to calculate statistics on the go

License

Notifications You must be signed in to change notification settings

erezgeva/nsl

Repository files navigation

Network Statistics Library

This project provide a small library to calculate statistics of a set. The library have the following properties

  1. The calculation is done while the program is adding new values to the set.
    So we get the current statistics without stopping.
  2. The library is a header file, no need to link, just include the header.
    The header is under MIT license.
  3. The library was design with network applications in mind,
    which requires calculate statistics on the go,
    the library can be used by any other discipline.
  4. The make file provides testing and Debian packaging,
    the library header do not require any build.
  5. The library header support both C and C++.
    C++ application can use C++ classes or optionally C structure.

Macros to use with the Library

Macro name C C++ C Default C++ Default Explanation
ST_USE_C C structures C structures C structures C++ Classes Force C++ using C structures
ST_USE_TYPE set type set type Use int64_t Use int64_t Element in set type

ST_SKIP_REGISTER skip using the 'register' keyword.

About

C/C++ Library to calculate statistics on the go

Resources

License

Stars

Watchers

Forks

Packages

No packages published