我想问的是,如何以皮秒、飞秒等任何单位计算时间,甚至更精确。我正在计算函数的运行时间并使用纳秒,当我使用毫秒或纳秒时,函数的运行时间返回0。我认为Chrono库只支持到纳秒,这是我在输入chrono::后按下ctrl+space时出现的最精确的时间:intmain(){autot1=std::chrono::high_resolution_clock::now();f();autot2=std::chrono::high_resolution_clock::now();std::cout(t2-t1).count()代码来源:http://en.cppreference.com/w/c