zoukankan      html  css  js  c++  java
  • 杂项(一)

    1、LARGE_INTEGER nStartCounter;  
     ::QueryPerformanceCounter(&nStartCounter);
     LARGE_INTEGER nFrequency;
     ::QueryPerformanceFrequency(&nFrequency);

    function();

    LARGE_INTEGER nStopCounter;

    ::QueryPerformanceCounter(&nStopCounter);

     double nTime = 1000 * (nStopCounter.QuadPart - nStartCounter.QuadPart) / nFrequency.QuadPart;

    printf("测试时间为%.2f 秒",nTime / 1000);
    用于返回程序运行的精确时间,其中LARGE_INTEGER为结构体,

    typedef union _LARGE_INTEGER { 
        struct {
            DWORD LowPart; 
            LONG  HighPart; 
        };
        LONGLONG QuadPart;
    } LARGE_INTEGER;

    因此QuadPart为高32位及低32位的结合,LONGLONG类型。

    2、raid0:并行读写,容量不变,速率提升,无备份能力;raid1:1+1备份,容量减半,速率无提升;

    raid3:n+1,1块存放校验块,用于数据恢复,n块并行,容量n/(n+1);raid5:n+1,校验块以及数据均分别存放在不同磁盘上,至少3块,容量n/(n+1),并行读写(需多读写一个奇偶校验)。

    3、1U就是4.445cm,2U则是1U的2倍为8.89cm。

    4、gpedit.msc  计算机设置----管理模板--------windows组件-------windows update----------intranet microsoft 更新增加http://10.102.0.248

  • 相关阅读:
    FTP Protocol
    File Operations
    Ubuntu Install Chinese Input Method
    Vim Intro
    ISA Introduction
    Fourier Transform
    Process/Thread Synchronization
    Process Synchronization-Example 2
    leetcode 栈和队列类型题
    leetcode 字符串类型题
  • 原文地址:https://www.cnblogs.com/woodyle/p/4845480.html
Copyright © 2011-2022 走看看