好词典

runtime

UK //ˈrʌn.taɪm//US //ˈrʌn.taɪm//

词源

复合词,由 run(运行)和 time(时间)组成,最早用于20世纪中叶的计算机科学领域。

noun

❶ 指程序或系统运行的时间段,从启动到结束的整个过程。常用于计算机领域,描述软件执行期间的性能或状态。

“The application crashed during runtime due to a memory leak.”

(该应用程序在运行期间因内存泄漏而崩溃。)

“We need to optimize the code to reduce runtime.”

(我们需要优化代码以减少运行时间。)

❶ 在电影或戏剧制作中,指作品的实际播放时长,即从开始到结束的总时间。

“The movie has a runtime of two hours and fifteen minutes.”

(这部电影的时长为两小时十五分钟。)

“The director decided to shorten the runtime of the play.”

(导演决定缩短这部戏剧的时长。)

同义词:execution time, duration, operation period

常见短语

runtime error — 指程序在运行期间发生的错误,通常由代码逻辑或资源问题引起,而非编译时的语法错误。

“A runtime error occurred when the program tried to access a null pointer.”

(当程序尝试访问空指针时发生了运行时错误。)

runtime environment — 指支持程序运行的软件环境,提供必要的库、服务和资源,确保程序能够正常执行。

“Java programs require a Java Runtime Environment (JRE) to execute.”

(Java程序需要Java运行时环境(JRE)才能执行。)