This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If the ProfilingDemo program could output the number of seconds in the run time whenever it says "Press Enter to start" it would make it much easier to map what the program is doing to what the profiling tools are showing at a given point in time.
Created attachment 90063 [details] my first work :) Is it good?
Created attachment 90064 [details] my first work :) Is it good?
Created attachment 90065 [details] My first work. Is it good? :)
Roman, thank you for the patch! I have some suggestions: 1. No need for globalcurrtime. A local variable can be declared and used where appropriate instead of this global one. 2. Printing of current run time should be part of PAUSE() macro to guarantee that every pause prints current time. 3. It is not necessary to print time when program ends, so please remove "Finish time is ..." from mutex.c. Also you should not assume that program ends after mutex_demo().
Created attachment 90150 [details] OK, i understand...and have already done :) it's bad that i didn't guess at once :( it's simple...need more experience!!! :)
This will be tracked as a NetFIX [1] issue from now on. Thanks Roman for the contribution! Alexey, would you be so kind and do the review and integration of the second patch? [1] http://wiki.netbeans.org/NetFIX
I'm going to apply the patch now.
Fixed in http://hg.netbeans.org/cnd-main/rev/d0c17efda703
Thank you very much Alexey for integration and especially Roman for your patch!