precise timing in microseconds
Long Long l1,l2,l3;
Timeval TV1;
Take a Time
Gettimeofday (tv,null);
L1 = tv.tv_sec*1000*1000 + tv.tv_usec;
Execute some code, such as algorithm 1 ...
Second time taken
Gettimeofday (tv,null);
L2 = tv.tv_sec*1000*1000+tv.tv_usec;
Execute some code, such as algorithm 2 ...
Gettimeofday (tv,null);
L3 = tv.tv_sec*1000*1000+tv.tv_usec;
printf ("%lld%lld/n", L2-L1, L3-L2);
You can see the execution time of two algorithms in microseconds (one out of 10,000 seconds
Why is PHP so red?
Recently, PHP (Personal hypertext preprocessor) seems to have become the most widely used web-processing language in the last two years, and its convenience, powerful features and opensource characteristics make it gradually erode to the traditional CGI is even the market for MicroSoft ASP (Active Server Page), where almost every major web site recruits PHP as a basic condition.
PHP does have the qualifications to be so red, for the
Indexes that exist but are not used are serious problems that cause the DML language to perform inefficiently, and all SQL statements such as inserts, UPDATES, and deletes run slowly when they want to update the rows that contain many indexes in the table. Oracle professionals see a list of the where statements applied to the SQL query statement will be indexed again, which may make the SQL statement run faster. The indexing functionality provided by
or more protocols, and the syntax format is as follows:
Extension Sometype:someprotocol,anotherproctocol {
Protocol implementation written here
}
========================================is and as type conversions
Swift language type conversions can determine the type of an instance. It can also be used to detect whether an instance type belongs to an instance of its parent class or subclass.
Type conversions in Swift are implemented using the IS and
Store the format of the command: parameter description is as follows:
Set/add/replace
Find keywords
The client uses it to store additional information about key-value pairs
The data's survival time, 0 means forever
Number of bytes stored
Stored blocks of data (can be directly understood as value in the key-value structure)
1, add
(1), the set that is stored anyway
This se
The examples described in this paper are different from those generated by code generators, such as SqlHelper, Codesmith, etc., which are commonly generated on the Internet. In fact, many of the sqlhelper generated by the code generator are not used in actual development, consider a beginner if the method of encapsulation class is too many, will cause certain trouble, also will give them to increase the burden, so this article lists the actual use of
JS today took a look at the new Jspinner in JDK1.4, which makes it easy to select dates, numbers, or options in a list.
JSpinner sample
The user uses the move up and down arrows on the component or keyboard to select. They can also enter their own choice. However, unlike JComboBox, JSpinner does not provide Drop-down list selection, so each choice and their order should have a certain meaning.
To use a class, you can simply create a collection of elements for selection (in a list or array),
Notes commonly used by spring MVC:
An introduction.
@Controller
@Controller is responsible for registering a bean into the spring context, the Bean ID defaults to
The class name starts with lowercase letters, and you can specify them as follows
Method One:
@Controller
public class TestController {}
Method Two:
@Controller ("Tmpcontroller")
public class TestController {}
@RequestMapping
1. @RequestMapping the URL
MPEG-1: Is the first video and audio lossy compression standard developed by the MPEG organization. The video compression algorithm was defined in 1990. At the end of 1992, MPEG-1 was formally approved as an international standard. MPEG-1 is a video and audio compression format that is customized for CD-ROM media. A 70-minute CD-ROM transfer rate is approximately 1.4Mbps. The MPEG-1 uses the technique of block-mode motion compensation, discrete-string transform (DCT), quantization, and optimizes
Label:For DBAs, backing up and refreshing resumes is two of the most important tasks, and if a failure occurs and the backup is not available, then the importance of refreshing the resume appears, wow! Of course, backup is the most important thing for DBAs (not one), and in a conditional scenario, we should keep multiple full and log backups on multiple servers, and even some companies will require complete data to be retained on tape or over large storage to ensure that data can be recovered lo
forward increment lookup) Ctrl+alt + key class
Ctrl+alt+↓ Copy the current row to the next row (replication incremented)
Ctrl+alt+↑ Copy the current line to the previous row (copy incremented) Alt+shift + key class
The following shortcut keys are commonly used in refactoring (note: The shortcut keys for general refactoring are Alt+shift + key classes)
Alt+shift+r Rename (of course, F2 can have the same effect)
Alt+shift+m Extraction Method (This is
SQL Server AlwaysOnZhong 445Survey report on port usagePart I: official documentation from MicrosoftMicrosoft Knowledge Base article 832017:service overview and network port requirements for WindowsFor our production environment SQL Server AlwaysOn FCI AG Hybrid deployment, based on Active Directory and cluster Service.The following information is referenced from KB 832017 and describes the related port requirements based on these two services:1. Active Directory (Local Security Authority)Activ
Summary:In many cases, MySQL will use a temporary table to summarize when it will be used to temporary tables what is a temporary table mysql is used to store some intermediate result sets of the table temporary table only when the current connection is visible when the connection is closed, MySQL automatically deletes the table and frees all the space.
In many cases, MySQL uses temporary tables to summar
I. Checking the data filesNote: The bbed operation should be performed in the Shutdown database mode[[emailprotected] controlfile]$ DBV file=/u01/app/oracle/oradata/orcl/datafile/test_01.dbf blocksize= 8192dbverify:release 10.2.0.1.0-production on Fri Jan 23:05:01 2015Copyright (c) 1982, 2005, Oracle. All rights reserved. Dbverify-verification Starting:file =/u01/app/oracle/oradata/orcl/datafile/test_01.dbfblock CHECKING:DBA = 20974772 , Block Type = ktb-managed data blockdata header at
Tags: find content shu xxx Establish create file binary file soft connect account diskLinux Prophet: Linux history:I will not say more about this, in fact, is a very interesting story string, online to find a lot of.UNIX-like system directory structure:Ubuntu does not have the concept of a drive letter, there is only one root directory/, all files under it Linux Directory
/: root directory, only directory under the general root directory, under Linux there is only one root directory. E
Label: Company projects have been using MyBatis as a persistent layer framework, natural, dynamic SQL is also more written, the most common is to use the IF tag in query statements to dynamically change the filter conditions. One of the great features of MyBatis is its dynamic SQL, which eliminates the hassle of splicing SQL, which is common and uncommon in the development of your project, and you can now summarize this piece.
If
Choose (when,otherwise)
Trim (Where,set)
Fo
Label:Bit: integer, value range [0,1,null], for accessing Boolean values Tinyint: integer, value range [0~256] smallint: integer, value range [ -215~215] int: integral type, range of values [ -231~231] Decimal: Exact numeric type, example: Decimal (8,4); Total 8 digits, 4 digits to the right of the decimal point Numeric: Similar to decimal SmallMoney: Currency type Money: Currency type FLOAT: Approximate numerical type Real: Approximate numerical type smalldatetime: Date and Time type, represent
Linux:The chattr command is very useful, and some of these functions are Linux kernel version to support, if the Linux kernel version is less than 2.2, then many features can not be implemented. The same-D check for errors in compressed files requires 2.5.19 or more cores to support. most of the Linux systems that run today are more than 2.6 cores. Modifying a property with the chattr command can improve the security of the system, but it is not suitable for all directories. The CHATTR command
+ Key ClassCtrl+alt+↓ Copy the current row to the next row (replication incremented)Ctrl+alt+↑ Copy the current line to the previous row (replication incremented)Alt+shift + Key ClassThe following shortcut keys are commonly used in refactoring (note: The shortcut keys for general refactoring are Alt+shift + key classes) Alt+shift+r Rename (of course, F2 can have the same effect)Alt+shift+m Extraction Method (This is one of the most common methods of
the 5 types of closures, and simply understand what closures are. It will be explained in detail later.The 1th kind of notationfunctionthis. r == 3.14159functionreturn This isvarnew Circle (1.0); alert (C.area ()); There is nothing special about this notation, just adding some attributes to the function.The 2nd kind of notationvar function varnew= 3.14159functionreturnthis . PI * R *returnvarnew1.0);The notation is to declare a variable and assign a function as a value to the variable.The 3rd
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.