Example
#{example}"); ipb.editor_values.get('templates')['togglesource'] = new Template(""); ipb.editor_values.get('templates')['toolbar'] = new Template(""); ipb.editor_values.get('templates')['button'] = new Template("
Emoticons
"); // Add smilies into the mix ipb.editor_values.set( 'show_emoticon_link', false ); ipb.editor_values.set( 'bbcodes', $H({"snapback":{"id":"1","title":"Post Snap Back","desc":"This tag displays a little linked image which links back to a post - used when quoting posts from the board. Opens in same window by default.","tag":"snapback","useoption":"0","example":"[snapback]100[/snapback]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"topic":{"id":"5","title":"Topic Link","desc":"This tag provides an easy way to link to a topic","tag":"topic","useoption":"1","example":"[topic=1]Click me![/topic]","switch_option":"0","menu_option_text":"Enter the topic ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"post":{"id":"6","title":"Post Link","desc":"This tag provides an easy way to link to a post.","tag":"post","useoption":"1","example":"[post=1]Click me![/post]","switch_option":"0","menu_option_text":"Enter the Post ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"spoiler":{"id":"7","title":"Spoiler","desc":"Spoiler tag","tag":"spoiler","useoption":"0","example":"[spoiler]Some hidden text[/spoiler]","switch_option":"0","menu_option_text":"","menu_content_text":"Enter the text to be masked","single_tag":"0","optional_option":"0","image":""},"acronym":{"id":"8","title":"Acronym","desc":"Allows you to make an acronym that will display a description when moused over","tag":"acronym","useoption":"1","example":"[acronym='Laugh Out Loud']lol[/acronym]","switch_option":"0","menu_option_text":"Enter the description for this acronym (EG: Laugh Out Loud)","menu_content_text":"Enter the acronym (EG: lol)","single_tag":"0","optional_option":"0","image":""},"hr":{"id":"12","title":"Horizontal Rule","desc":"Adds a horizontal rule to separate text","tag":"hr","useoption":"0","example":"[hr]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"1","optional_option":"0","image":""},"php":{"id":"14","title":"PHP Code","desc":"Allows you to enter PHP code into a formatted/highlighted syntax box","tag":"php","useoption":"0","example":"[php]$variable = true;\n\nprint_r($variable);[/php]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"html":{"id":"15","title":"HTML Code","desc":"Allows you to enter formatted/syntax-highlighted HTML code","tag":"html","useoption":"0","example":"[html]\n \n[/html]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"sql":{"id":"16","title":"SQL Code","desc":"Allows you to enter formatted/syntax-highlighted SQL code","tag":"sql","useoption":"0","example":"[sql]SELECT p.*, t.* FROM posts p LEFT JOIN topics t ON t.tid=p.topic_id WHERE t.tid=7[/sql]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"xml":{"id":"17","title":"XML Code","desc":"Allows you to enter formatted/syntax-highlighted XML code","tag":"xml","useoption":"0","example":"[xml]2 Replies - 0 Views - Last Post: 59 minutes ago
#1
Reputation: 0
- Posts: 3
- Joined: 22-September 12
Posted Today, 08:03 AM
Here is a code I want to ask question on:[
void delay () {int i; for(i=0i<100;i++) }
]
I don't know how long this delay will last in real time and I want to know how to calculate the time for such a delay function. Tell me how long it will last.
This post has been edited by jimblumberg: Today, 08:18 AM
Reason for edit:: Added missing code tags. Please learn to use them properly.
Replies To: Calculating the time for a loop
#2
Reputation: 6
- Posts: 47
- Joined: 23-May 13
Re: Calculating the time for a loop
Posted Today, 08:06 AM
#3
Reputation: 3081
- Posts: 9,383
- Joined: 25-December 09
Re: Calculating the time for a loop
Posted 59 minutes ago
Quote
Tell me how long it will last.
There is no way anyone can tell you how long that loop will last on your computer. Every computer will have different results, you could even have different results on the same computer, depending on how you compile your code. It is even possible that the compiler will optimize that loop out of existence. Never try to use a loop to generate a "delay". Even if does work these tight loops can make your multi-tasking operating seem slow and sluggish. There are several operating system specific functions to do what you seem to want, for example Sleep(), sleep(), delay().
Jim
Page 1 of 1
Source: http://www.dreamincode.net/forums/topic/322400-calculating-the-time-for-a-loop/
ihop Sasquatch 2013 super bowl commercials wheres my refund superbowl ads Super Bowl Ads 2013 Buffalo Wild Wings
No comments:
Post a Comment