while True: try: active_window = getActiveWindowTitle() timestamp = time.strftime("%Y-%m-%d %H:%M:%S")
with open(log_file, "a") as f: f.write(f"timestamp - active_window\n") pc time logger
These tools require you to start/stop a timer or manually assign time to specific projects/clients. pc time logger