[CSC 315] Slowing Down Plotting
Andrew J. Pounds
pounds_aj at mercer.edu
Thu Oct 17 18:16:58 EDT 2024
Some of you have asked me about slowing down the speed at which you plot
things (like you circle) so you can see if it is being drawn properly.
For things like this you could easily use the sleep function from the
<unistd.h> C header file. The problem is that this function takes an
integer argument in seconds -- that is generally WAY TOO SLOW. I
recommend using the microsleep function (usleep) from the same header
file. It takes an argument in microseconds. So usleep(100000) should
click off every 10th of a second. You can easily tailor that to your
liking.
--
*/Andrew J. Pounds, Ph.D./*
/Professor of Chemistry and Computer Science/
/Director of the Computational Science Program/
/Mercer University, Macon, GA 31207 (478) 301-5627/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc315/attachments/20241017/a5d263a1/attachment.htm>
More information about the csc315
mailing list