How I Built ComfyUI Batch Image Timer Extended: From an Idea to GitHub
From a ten-entry rendering history to an extension with image previews, persistent analytics, SQLite and GPU monitoring. The story of building a ComfyUI node with ChatGPT.
November 3, 2026 · ComfyUI / Open Source
It all started with one question
While working with ComfyUI, I regularly queued new image generations and watched my workflows execute. But I was interested in more than the finished picture. I wanted to know how long each run took and whether my next generation was faster or slower than the previous one.
I was missing a convenient place to view the most recent rendering times. I did not want to copy numbers into a notebook, open another application or dig through console logs. The information should live right on the ComfyUI canvas, inside a node.
Initially, the idea was tiny: show the last ten generation times. At that point, I had no plans to build a separate open-source project with persistent statistics, a gallery, GPU monitoring and a collection of management tools.
The inspiration: the original Batch Image Timer
The starting point was ComfyUI-Batch-Image-Timer by Herman Kwan, an open-source project I discovered on GitHub. I also came across a discussion of the tool in the Stable Diffusion community on Reddit. Its seven-segment LED clock caught my attention immediately: it looked like a display from a classic piece of electronic equipment.
The original node could measure execution time, switch between several timer modes and change the display color. It was a strong foundation, but it did not yet offer all the information I wanted to see while generating images.
I decided to extend the existing software rather than make a near-identical timer from scratch. The Extended edition is an independent derivative of that original project, and it retains the required MIT license and upstream copyright attribution.

The first feature: a history of ten renders
The first change was modest. I wanted a list beneath the clock showing the ten most recently completed generations, with their completion time and rendering duration. New results would appear at the top, pushing older ones off the list.
That was when I started working with ChatGPT. I described what I wanted the feature and interface to do; ChatGPT helped write and revise the code. I then installed the updated packages in my own portable ComfyUI, ran tests and returned with feedback.
This was not a single prompt that magically produced a finished program. Each stage involved trying something, checking the result and often making another correction. The ten-entry history became the foundation for a much larger project.
Early installation mistakes taught me how ComfyUI extensions work
I soon learned that valid code is not enough if the files are placed in the wrong folders. One additional JavaScript file initially ended up in the node’s root directory even though it belonged in the web folder.
At first, the node did not appear in ComfyUI search. I needed the complete upstream extension installed, followed by the new modification. That experience taught me the importance of __init__.py, Python modules, extension registration and the expected folder structure.
Later came an even more important lesson: refreshing a ComfyUI browser tab does not restart its Python server. Backend changes take effect only after the ComfyUI process is actually restarted.
Simplifying the display to Generation Time
The original timer offered several modes, including ETA, COMPUTE and TOTAL. After testing them, I realized that I did not need to switch among three measurements. My main requirement was simple: show the duration of the most recent completed workflow execution.
We replaced the modes with one clear heading: GENERATION TIME. The clock adopted the MM:SS:CC format — minutes, seconds and hundredths of a second — while preserving the distinctive LED digits and selectable colors.
We also added a progress bar. During sampling it can display the current step and a meaningful percentage. During stages without reliable progress data, it avoids inventing an exact number. After the run, it reports that generation is complete.

Why I removed Total Images and the 1/1 indicator
One of the most confusing parts of the original node was its total_images field and a counter such as 1/1. It was easy to assume that setting the field to two would generate two images. In reality, it tracked expected timer executions rather than controlling the generator.
In a typical workflow, I configure batch size in a node such as Empty Latent Image using batch_size. I did not want to remember the same number in two different places, so we removed the manual Total Images control.
The timer does not generate images or change batch size. It measures one complete workflow execution, while the statistics system tries to identify the resulting saved files from ComfyUI history. Where custom save nodes do not provide enough metadata, image counts may be marked as estimates.
From timestamps to image and prompt previews
The next idea seemed obvious: if the history knows how long a generation took, why not show the image it produced? We added a thumbnail preview when hovering over a history row, together with prompt text when that information was available.
Later we added Load Workflow, Open in New Tab, image opening and workflow JSON export. What began as a stopwatch was gradually turning into a small archive of experiments that I could revisit.
These features depend on retained data. A thumbnail needs the output file to remain available; workflow recovery needs a saved workflow snapshot. Not every possible third-party workflow can necessarily be reconstructed in full.
Persistent statistics across sessions, days and months
Once the short history was working, I wanted to know how many images I had created in the current session, today, this week and this month — and how much rendering time I had spent on them. Ten timestamps alone no longer told the whole story.
That led to the separate GENERATION STATISTICS section. We started storing results in a local SQLite database so that they would survive closing the browser, restarting ComfyUI and rebooting the computer.
For my portable setup, I wanted the database to live inside the installed extension, for example at ComfyUI/custom_nodes/ComfyUI-Batch-Image-Timer-Extended/data/rendering_statistics.sqlite3. On a hosted installation, it is stored on the machine running the ComfyUI backend. The totals are therefore not tied to a single browser tab.
The day the counter got stuck at five images
This was probably the most instructive bug of the whole project. Recent Generations already showed ten renders, but Generation Statistics stubbornly reported only five images. Finishing another valid render did not make the count increase.
We investigated how history entries were read from the server and whether the JavaScript and Python files were in sync. During one update, ComfyUI still expected the previously removed total_images input because the required backend file had not been updated correctly.
The breakthrough came after fixing the code and fully restarting the ComfyUI server. The next completed generation increased the counter from five to six. It was a useful reminder that a feature is not truly verified until it works in the real application, beyond isolated code tests.
Render Performance: an at-a-glance speed comparison
Once the database was collecting results, we introduced RENDER PERFORMANCE — LAST 12 RUNS. Each vertical bar represents a completed workflow execution and its height corresponds to rendering duration. The newest result is highlighted in green, with earlier ones in blue.
This makes it easy to notice when one run takes significantly longer than the previous ones. Later versions introduced more interactive detail, run comparisons, a calendar view and a way to recheck the server history for missing statistics.
Of course, the chart needs context. Different models, resolutions, samplers and step counts naturally take different amounts of time. A taller bar does not automatically mean that a computer has become slower.
GPU, VRAM and output storage monitoring
After tracking time, I turned my attention to the hardware. I wanted to see what happened to the GPU during generation: its utilization, VRAM consumption and temperature, where those readings were supported by the hardware and driver.
We built a separate, optional GPU & VRAM MONITOR. We also added statistics for saved file sizes and an on-demand way to inspect how much disk space the output directory uses. I wanted the hardware sampling to remain lightweight rather than creating a noticeable rendering overhead.
The settings distinguish two different actions: Show GPU & VRAM Monitor controls whether the panel is visible, while Enable GPU Monitoring actually starts or stops collecting hardware readings. Not everyone wants a permanent GPU dashboard on the canvas.
The completion sound that was silent at first
I also wanted an audible signal when rendering finished. It is a small quality-of-life feature, but very useful when a long generation is running while I work in another application.
The first test did not go well: I enabled the sound, finished an image and heard nothing. The playback logic turned out to be unnecessarily tied to desktop-notification settings.
We separated those options and added a volume slider and a TEST SOUND button. Browser autoplay rules still apply, so the user may need to interact with the page before automatic audio can play.
A cleaner layout with a separate Tools & Panels module
At one point the node was getting taller and taller. It already contained the clock, history, statistics, charts, hardware monitoring and several pop-up tools. I did not want all those elements competing for attention.
We reorganized the interface. The main information stayed easy to scan, the GPU monitor received its own collapsible section, and the bottom became a dedicated TOOLS & PANELS area with SETTINGS, FAILURES, ANALYTICS and MONITOR buttons.
The settings were also grouped by purpose, bringing together display options, data export and import, diagnostics, backups and system checks. The goal was to add power without making the basic task — checking generation time — more complicated.
How the extension works under the hood
The project combines three main technologies. Python handles the server side, communication with ComfyUI and data collection. JavaScript draws the node interface, LED clock, charts and pop-up windows. SQLite stores data between application sessions.
We also use available ComfyUI execution-history information, job identifiers and image-preview endpoints. This means handling the difference between one workflow run and multiple files in a batch, sometimes incomplete metadata and the possibility of double-counting.
Backup handling, database migrations and safer file access became important parts of the work. Those less visible pieces taught me that a genuinely useful tool is about predictable behavior just as much as it is about interface design.
Working with ChatGPT: idea, code, test, correction
Throughout the project, I collaborated with ChatGPT. It helped analyze source code, draft modifications, assemble ZIP packages, interpret console errors and propose technical approaches.
I decided which features were useful and how the interface should behave. I then installed new builds in my portable ComfyUI setup and tested them on actual image generations. Whenever something failed, I came back with a screenshot or log.
This was an iterative process, not a one-click project. Problems with statistics and notifications were especially good reminders that testing in the real application is as important as generating code.
From early patches to Extended v1.9.2
The early versions focused on rendering-time history. Next came image previews, prompt and workflow recall, persistent statistics, performance charts and hardware monitoring. Later updates added management tools and gave the interface a clearer structure.
My guiding principle was that every feature should solve a real problem I had encountered. Some ideas were simplified or removed when they turned out not to be useful. The ETA / COMPUTE / TOTAL switcher and manual Total Images setting are examples.
After many iterations, v1.9.2 felt like the right milestone for wrapping up the first major development phase and preparing a public release.
Publishing the project on GitHub
The final stage was creating the public ComfyUI-Batch-Image-Timer-Extended repository. That involved more than uploading code: I prepared a README, installation instructions, technical documentation, a changelog, license notices and a separate installation ZIP.
Because Extended builds on earlier software, I preserved the MIT license and the proper attribution to Herman Kwan. I published the Extended version as an independent extension of the original project.
On November 3, 2026, I published the first public v1.9.2 GitHub release. It marked the end of the first development stage and made it possible to share the tool with other ComfyUI users.
What I learned, and what comes next
The most surprising part is how small the original idea was. I only wanted to see ten recent generation times. What emerged was an extended rendering monitor with previews, a gallery, persistent statistics, performance charts, GPU monitoring, backups and diagnostics.
That does not mean the project will never need another fix. New ComfyUI versions, different models and third-party nodes can expose compatibility cases we have not yet encountered. Reliability and accurate statistics are my priorities for future improvements.
The experience reminded me that open-source projects can start with one very personal need. Combining ideas, hands-on testing and AI-assisted development can turn a small modification into a useful tool shared with a wider community.
Project and download
This article describes the development process and hands-on tests. Herman Kwan’s original software retains its copyright attribution and MIT license.
