This repo is to track my changes for the task
to generate client1 exe in Terminal:
g++ -std=c++17 client.cpp classClient.cpp time.cpp thread.cpp -o client1
to execute:
./client1
The output in terminal currently is:
...
{"timestamp": 1724343098159, "out1": "2.7", "out2": "4.0", "out3": "5.0"},
{"timestamp": 1724343098263, "out1": "4.0", "out2": "4.0", "out3": "5.0"},
{"timestamp": 1724343098369, "out1": "4.8", "out2": "3.0", "out3": "5.0"},
{"timestamp": 1724343098474, "out1": "5.0", "out2": "3.0", "out3": "5.0"},
...
Note
!!!
- To be able to generate the plot make sure to install matplotlib library:
pip install matplotlib
- to update/create the json_test.json file:
./client1 > json_test.json
- edit json_test.json file by adding open square bracket [ at the top and close square bracket ] at the very bottom as the example below:
to see the plot run:
python3 Docs/plotJsonFile.py