Compact JSON Time Series Data library for C#/.NET
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CJTSD.Test
CJTSD
.gitattributes
.gitignore
LICENSE
README.md
cjtsd-net.sln

README.md

CJTSD.Net

This is the C#/.NET library for generating and handling Compact JSON Time Series Data (CJTSD) data in either client or server environment.

There are CJTSD libraries for other programming languages:

Usage

Latest version of this library (CJTSD.Net) can be found on nuget.org.

Below is a very simple example showing how to use it:

DateTime start = DateTime.Now;
TimeSpan duration = new TimeSpan(0, 0, 0, 0, 500);
CJTSD cjtsd = CJTSD.Create().SetUnitToMillis()
    .Add(start.Add(duration))
    .AddCount(10L)
    .Add(start.Add(duration).Add(duration))
    .AddCount(20L)
    .Add(start.Add(duration).Add(duration).Add(duration))
    .AddCount(30L)
    .Build();

string jsonString = JsonConvert.SerializeObject(cjtsd, jsonSettings);

Build

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsMSBuildCmd.bat"
cd CJTSD
msbuild /t:pack /p:Configuration=Release /p:IncludeSource=true