Tagged articles
18 articles
Page 1 of 1
Deepin Linux
Deepin Linux
May 15, 2026 · Backend Development

Master Linux Kernel Delay Mechanisms to Write Reliable Drivers

This article explains the different Linux kernel delay mechanisms—busy delays like udelay, sleep delays like mdelay, and high‑resolution timers—detailing their inner workings, appropriate use cases, performance trade‑offs, and common pitfalls so developers can write efficient, stable driver code for industrial‑grade systems.

Linux kerneldelay mechanismsdriver development
0 likes · 24 min read
Master Linux Kernel Delay Mechanisms to Write Reliable Drivers
php Courses
php Courses
Nov 11, 2025 · Backend Development

Mastering PHP’s microtime(): Precise Timing and Practical Uses

This article explains PHP’s microtime() function—its basic concept, syntax, optional parameters, practical code examples, and common scenarios such as measuring execution time and generating unique identifiers—to help developers handle time‑related tasks with high precision.

microtimephp-functionstiming
0 likes · 4 min read
Mastering PHP’s microtime(): Precise Timing and Practical Uses
Top Architect
Top Architect
Mar 21, 2023 · Backend Development

Various Ways to Measure Code Execution Time in Java

This article explains several Java techniques for measuring code execution time—including Spring's StopWatch, System.nanoTime, new Date, and System.currentTimeMillis—provides sample code snippets, discusses their usage and output, while also briefly mentions related utilities, and contains promotional links and community invitations.

JavaStopwatchSystem.nanoTime
0 likes · 5 min read
Various Ways to Measure Code Execution Time in Java
Top Architect
Top Architect
Mar 16, 2023 · Backend Development

Various Ways to Measure Code Execution Time in Java

This article explains several common techniques for measuring Java code execution time, including System.currentTimeMillis(), Spring's StopWatch utility, System.nanoTime(), and the use of new Date(), providing code examples and a brief overview of StopWatch's API for developers seeking precise performance metrics.

BackendJavaStopwatch
0 likes · 5 min read
Various Ways to Measure Code Execution Time in Java
Java Architect Essentials
Java Architect Essentials
Feb 23, 2023 · Backend Development

Using Spring and Apache Commons StopWatch for Precise Code Execution Timing in Java

This article explains why simple System.currentTimeMillis() timing is often insufficient, introduces Spring's org.springframework.util.StopWatch and Apache Commons' org.apache.commons.lang3.time.StopWatch, provides Maven dependencies and complete Java examples, and discusses important usage notes such as thread‑safety and task management.

Apache CommonsStopwatchspring
0 likes · 11 min read
Using Spring and Apache Commons StopWatch for Precise Code Execution Timing in Java
Python Programming Learning Circle
Python Programming Learning Circle
Feb 8, 2023 · Fundamentals

Measuring Execution Time and Memory Usage in Python

This article introduces four practical methods for monitoring Python code performance—using the built‑in time module, the %%time IPython magic, line_profiler for per‑line timing, and memory_profiler for detailed memory usage—complete with code examples and interpretation of results.

MemoryPythonline_profiler
0 likes · 7 min read
Measuring Execution Time and Memory Usage in Python
Java Architect Essentials
Java Architect Essentials
Aug 5, 2021 · Backend Development

Various Methods for Measuring Code Execution Time in Java

This article introduces four practical approaches for measuring code execution time in Java—including simple time‑difference calculation, StopWatch‑style utilities, functional interfaces with Supplier/IntConsumer, and AutoCloseable‑based tracing—providing code examples, usage patterns, and enhancements such as chainable start methods.

JavaStopwatchautocloseable
0 likes · 10 min read
Various Methods for Measuring Code Execution Time in Java
Programmer DD
Programmer DD
May 11, 2021 · Backend Development

Elegant Java Code Timing: From Simple Diff to AutoCloseable TraceWatch

This article explores various Java techniques for measuring code execution time—from basic start‑end time differences and StopWatch utilities to functional wrappers and AutoCloseable‑based TraceWatch—offering cleaner, less intrusive alternatives for performance profiling.

autocloseablecodeperformance
0 likes · 11 min read
Elegant Java Code Timing: From Simple Diff to AutoCloseable TraceWatch
Python Programming Learning Circle
Python Programming Learning Circle
Apr 28, 2021 · Fundamentals

How to Speed Up Python Programs: Profiling, Timing, and Practical Optimization Techniques

This article explains why Python itself is not slow, demonstrates how to identify bottlenecks with timing and cProfile, and provides a collection of practical tips—such as using built‑in types, lru_cache, local variables, and efficient string formatting—to improve Python program performance by up to 30 percent.

ProfilingPythoncprofile
0 likes · 10 min read
How to Speed Up Python Programs: Profiling, Timing, and Practical Optimization Techniques
Selected Java Interview Questions
Selected Java Interview Questions
Jan 12, 2021 · Backend Development

Various Methods for Measuring Code Execution Time in Java

This article introduces four approaches—simple time‑difference calculation, StopWatch‑like utilities, functional interfaces, and AutoCloseable—to accurately measure arbitrary code segment durations in Java, providing code examples and discussing their advantages and trade‑offs.

Backend DevelopmentCode ProfilingJava
0 likes · 9 min read
Various Methods for Measuring Code Execution Time in Java
Programmer DD
Programmer DD
Oct 16, 2020 · Backend Development

Mastering Guava’s Stopwatch: Precise Timing in Java Applications

An in‑depth guide explains Guava’s Stopwatch utility, showing how to create, start, stop, and reset timers, customize the time source via Ticker, compare it with raw System.nanoTime or System.currentTimeMillis, and highlights its advantages for accurate performance measurement in Java and Android projects.

GuavaJavaStopwatch
0 likes · 5 min read
Mastering Guava’s Stopwatch: Precise Timing in Java Applications
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 15, 2020 · Backend Development

Six Common Ways to Measure Execution Time in Java

This article introduces six practical methods for measuring Java code execution time, covering built‑in System.currentTimeMillis, System.nanoTime, new Date, Spring’s StopWatch, Apache Commons‑lang3 StopWatch, and Guava’s Stopwatch, and explains their underlying principles and usage examples.

JavaStopwatchSystem.nanoTime
0 likes · 11 min read
Six Common Ways to Measure Execution Time in Java
JavaScript
JavaScript
Jan 1, 2018 · Frontend Development

Schedule a Two‑Hour Delayed Console Message with setTimeout

This concise JavaScript example demonstrates how to employ setTimeout to schedule a console.log call that prints a colored 'Good night, friends~' message after a two‑hour delay, illustrating the use of timing functions and CSS styling within console output.

JavaScriptconsole.logfrontend
0 likes · 1 min read
Schedule a Two‑Hour Delayed Console Message with setTimeout