reaction time test(reaction times test中文翻譯,reaction times test是什么意思,reaction times test發(fā)音、用法及例句)
- 內容導航:
- 1、reaction times test
- 2、c#byte數組高效復制怎么做
1、reaction times test
reaction times test發(fā)音
英: 美:
reaction times test中文意思翻譯
常見(jiàn)釋義:
反應時(shí)間試驗
reaction times test雙語(yǔ)使用場(chǎng)景
1、PC World points out a web-based reaction test that can actually be used to measure response times between wired and wireless mice.───微電腦世界》指出一個(gè)網(wǎng)頁(yè)版反應測試,可以真正用來(lái)測量有線(xiàn)和無(wú)線(xiàn)鼠標的反應時(shí)間。
2、In this test, soldiers who have been traumatized undergo a coordination study that assesses their vision and reaction times.───在這項檢查中,醫生要對受傷士兵進(jìn)行協(xié)調研究,評估他們的視力和反應速度。
3、included a 10-minute "Psychomotor Vigilance Test" that monitors attentiveness and reaction times.───分鐘的神經(jīng)行為測試以檢測其精神警覺(jué)性和清醒程度,其中包括10分鐘的精神警惕性實(shí)驗(檢測注意力和反應時(shí)間)。
reaction times test相似詞語(yǔ)短語(yǔ)
1、unfailing reaction───經(jīng)久不衰的反應
2、times───v.乘以(time的第三人稱(chēng)單數);n.(用于比較)倍(time的復數);prep.乘以
3、reaction───n.反應,感應;反動(dòng),復古;反作用
4、reaction time test───[醫]反應時(shí)間試驗
5、natural reaction───自然反應
6、reaction test───反動(dòng)力試驗,反應試驗
7、reaction times───反應時(shí)間(reactiontime的復數)
8、mixed reaction───[經(jīng)] 意見(jiàn)不一;各種不同反應
9、cationization reaction───陽(yáng)離子化反應
2、c#byte數組高效復制怎么做
在日常編程過(guò)程中,我們可能經(jīng)常需要Copy各種數組,一般來(lái)說(shuō)有以下幾種常見(jiàn)的方法:Array.Copy,IList.Copy,BinaryReader.ReadBytes,Buffer.BlockCopy,以及System.Buffer.memcpyimpl,由于最后一種需要使用指針,所以本文不引入該方法。
本次測試,使用以上前4種方法,各運行1000萬(wàn)次,觀(guān)察結果。
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
namespace BenchmarkCopyArray
{
class Program
{
private const int TestTimes = 10000000;
static void Main()
{
var testArrayCopy = new TestArrayCopy();
TestCopy(testArrayCopy.TestBinaryReader, "Binary.ReadBytes");
TestCopy(testArrayCopy.TestConvertToList, "ConvertToList");
TestCopy(testArrayCopy.TestArrayDotCopy, "Array.Copy");
TestCopy(testArrayCopy.TestBlockCopy, "Buffer.BlockCopy");
Console.Read();
}
private static void TestCopy(Action testMethod, string methodName)
{
var stopWatch = new Stopwatch();
stopWatch.Start();
for (int i = 0; i < TestTimes; i++)
{
testMethod();
}
testMethod();
stopWatch.Stop();
Console.WriteLine("{0}: {1} seconds, {2}.", methodName, stopWatch.Elapsed.Seconds, stopWatch.Elapsed.Milliseconds);
}
}
class TestArrayCopy
{
private readonly byte[] _sourceBytes = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
public void TestBinaryReader()
{
var binaryReader = new BinaryReader(new MemoryStream(_sourceBytes));
binaryReader.ReadBytes(_sourceBytes.Length);
}
public void TestConvertToList()
{
IList bytesSourceList = new List(_sourceBytes);
var bytesNew = new byte[_sourceBytes.Length];
bytesSourceList.CopyTo(bytesNew, 0);
}
public void TestArrayDotCopy()
{
var bytesNew = new byte[_sourceBytes.Length];
Array.Copy(_sourceBytes, 0, bytesNew, 0, _sourceBytes.Length);
}
public void TestBlockCopy()
{
var bytesNew = new byte[_sourceBytes.Length];
Buffer.BlockCopy(_sourceBytes, 0, bytesNew, 0, _sourceBytes.Length);
}
}
}
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。