I'm calling some functions several times(5000-10000) and measuring the time it takes to finish the execution of function each time.
For example : Binary search with 10 ints , 11 ints, 1000 ints... Now I want to draw the graph of how much it takes to finish the search , every step.
I have the amount of integers as X and the time as Y. But I don't know how to connect the points to making a graph , Is there any function or library in visual studio 2015 that help me to draw a graph ? like "graphics.h" in borland
Edit : Using windows 10 and visual studio 2015
Standard C++11 or C++14 does not have any graphics library.
But you should consider using Qt, a free software cross-platform GUI library for C++. I guess that you'll be happy in using Qt graphics view framework. You could also consider some other, perhaps OS specific, widget toolkit. Or just output a 2D graphics using libcairo.
Another possibility might be to output some textual file (for GNUplot, in JSON, in SVG, for some spreadsheet in CSV, etc...) and use some external program to display that graph (in textual format). You could even use some inter-process communication (e.g. some FIFO or pipeline, with _popen
or better) between them.
BTW Windows is AFAIK not a real-time OS, but you don't really need real-time as you commented, you just need some interactivity. IMHO pipelining to GNUplot is very easy (at least on Linux, and probably on Windows too....).