Example 18-2 shows a class written for Windows that provides member fu การแปล - Example 18-2 shows a class written for Windows that provides member fu ไทย วิธีการพูด

Example 18-2 shows a class written

Example 18-2 shows a class written for Windows that provides member functions for accu rate time delays and also member functions to measure software execution times. This class is added by right-clicking on the project name and inserting an MFC generic class named TimeD. It contains three member functions called Start,Stop,and Delay.The Start() function is used to start a measurement and Stop() is used to end a time measurement. The Stop() function returns a double floating-point value that is the amount of time in microseconds between Start() and Stop().
The Delay function causes a precision time delay based on the time-stamp cou e Delay function is in milliseconds. This means that a Delay(1000) parameter transferred to causes exacty 1000 ms of delay.
when TimeD is initialized in a program. it reads the microprocessor frequency in MHz from the windows registry file using the RegQuery ValueEx function after opening it with the RegopenkeyEx function. The microprocessor clock frequency is returned in the Micro Frequency class variable
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
ตัวอย่าง 18-2 แสดงคลาสที่เขียนขึ้นสำหรับ Windows ที่มีฟังก์ชันสมาชิกสำหรับ accu อัตราเวลาความล่าช้า และฟังก์ชันสมาชิกวัดเวลาการดำเนินการของซอฟต์แวร์ ชั้นนี้จะถูกเพิ่ม โดยคลิกขวาบนชื่อโครงการ และแทรก MFC ทั่วไปคลาสที่มีชื่อว่าหมดเวลา ประกอบด้วยสามสมาชิกฟังก์ชันฟังก์ชันเริ่ม หยุด และ Delay.The Start() ถูกใช้เพื่อเริ่มการประเมิน และใช้ Stop() เพื่อสิ้นสุดการวัดเวลา Stop() ฟังก์ชันส่งกลับค่าทศนิยมคู่ที่มีระยะเวลาใน microseconds ระหว่าง Start() และ Stop()การทำงานล่าช้าทำให้ความแม่นยำเวลาเลื่อนตามอีลาสเวประทับเวลาฟังก์ชันการหน่วงเวลาเป็นมิลลิวินาที ซึ่งหมายความ ว่า Delay(1000) พารามิเตอร์ถูกโอนย้ายไปทำ exacty ms 1000 ของความล่าช้า เมื่อหมดเวลาเริ่มต้นในโปรแกรม จะอ่านความถี่ในการประมวลผลในหน่วย MHz จากแฟ้มรีจิสทรี windows ที่ใช้ฟังก์ชัน RegQuery ValueEx หลังจากเปิดด้วยฟังก์ชัน RegopenkeyEx ความถี่นาฬิกาของหน่วยประมวลผลจะถูกส่งกลับในตัวแปรระดับความถี่ไมโคร
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
Example 18-2 shows a class written for Windows that provides member functions for accu rate time delays and also member functions to measure software execution times. This class is added by right-clicking on the project name and inserting an MFC generic class named TimeD. It contains three member functions called Start,Stop,and Delay.The Start() function is used to start a measurement and Stop() is used to end a time measurement. The Stop() function returns a double floating-point value that is the amount of time in microseconds between Start() and Stop().
The Delay function causes a precision time delay based on the time-stamp cou e Delay function is in milliseconds. This means that a Delay(1000) parameter transferred to causes exacty 1000 ms of delay.
when TimeD is initialized in a program. it reads the microprocessor frequency in MHz from the windows registry file using the RegQuery ValueEx function after opening it with the RegopenkeyEx function. The microprocessor clock frequency is returned in the Micro Frequency class variable
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
ตัวอย่าง 18-2 แสดงชั้นเขียนสำหรับ Windows ที่ให้ฟังก์ชันสมาชิก ACCU อัตราเวลาล่าช้าและฟังก์ชันสมาชิกวัดเวลาการซอฟต์แวร์ ชั้นนี้จะถูกเพิ่มโดยการคลิกขวาที่ชื่อโครงการ และการใส่ MFC ระดับทั่วไป ชื่อ หมดเวลา มันประกอบด้วยสามสมาชิกฟังก์ชันที่เรียกว่าเริ่มต้น หยุด และล่าช้าฟังก์ชัน start() ถูกใช้เพื่อเริ่มต้นการวัดและ stop() ใช้สิ้นสุดเวลาวัด ฟังก์ชันจะคืนค่าจุดลอยตัว stop() สองครั้งที่ปริมาณของเวลาและในไมโครวินาทีระหว่าง start() stop() .
ฟังก์ชันความล่าช้าทำให้เกิดความล่าช้าเวลาขึ้นอยู่กับเวลาถึง E ล่าช้าฟังก์ชันในหน่วยมิลลิวินาทีซึ่งหมายความว่าการหน่วงเวลา ( 1000 ) ค่าโอน exacty 1000 ms สาเหตุของความล่าช้า
เมื่อหมดเวลาจะเริ่มต้นในโปรแกรม มันอ่านไมโครโปรเซสเซอร์ความถี่ MHz จากรีจิสทรีของ Windows แฟ้มโดยใช้ฟังก์ชัน valueex regquery หลังจากที่เปิดมันมีฟังก์ชัน regopenkeyex . ไมโครโพรเซสเซอร์ความถี่นาฬิกากลับมาในไมโครความถี่ตัวแปรคลาส
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2024 I Love Translation. All reserved.

E-mail: