…
type casting operator
发表于
…
cpp time
发表于
时间分类
- real time 和 处理器时间(process time)
从某个点测量的真实时间,比如从1970年开始的,或者从进程启动时候的点开始;
进程使用CPU的时间,分用户时间(运行在用户态)和系统时间(运行在内核态) - 硬件时间(hardware clock)
一个带电池的硬件,内核在启动时候从这里初始化开始时间 - 软件时间(software clock, HZ, jiffy)
大多数系统调用设置超时和测量时间的精度取决于HZ,是内核维护的一个最小精度,HZ取决于操作系统和硬件,最早是100,后来有100,250,300,1000 - 高精度定时器
在 2.6.21 之前,定时器的精度取决于 jiffy; 从这个版本开始, linux支持使用高精度定时器硬件来设置定时器 - Epoch
1970-01-01 00:00:00 +0000 (UTC) 开始的秒数 - Broken-down time
struct tm 描述时间的各个部分,年月日分开
cpp rapidjson
发表于
…
assembly zip in maven
发表于
使用 maven-assembly-plugin,将项目打包成zip包.
用到的lvm
发表于
用到的tcpdump
发表于
…
用到的ssh
发表于
…
用到的mysql
发表于
…
用到的shell
发表于
更新于
…
用到的linux
发表于
更新于
…
用到的java
发表于
更新于
…
用到的ffmpeg
发表于
更新于
…
用到的excel
发表于
rtmp
发表于
更新于
视频分辨率
发表于
why-44.1khz-is-the-minimum-high-fidelity-sampleing-rate-in-audio
发表于
Nyquist-Shannon sampling theorem
dicates that to reproduce a sound accrtately, it must be sampled at twice the rate of the sound’s frequency. Since the range of human hearing is from around 20Hz to 20,000Hz, reproducing the heighest-pitched sounds people can generally hear requires a sample rate of more than 40,000 Hz.
To provide additional room for a low-pass filter in order to avoid distortion caused by aliasing, an additional 2.05kHz tarnsition band is added to the pre-smapling frequency(resulting in 22,050Hz). Doubling tha per the Nyquist theorem results in a final minimun frequency of (you guessed it) 44.1kHz.
音频编码
发表于
更新于
《被讨厌的勇气》
发表于
更新于
如何建立积极的人生态度.
在centos上切换不同版本的gcc
发表于
使用scl工具进行切换,效果是想用哪个版本就可以切哪个版本,方便调试。