summaryrefslogtreecommitdiffstats
path: root/subcmds/upload.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-04-18 10:09:16 -0700
committerShawn O. Pearce <sop@google.com>2009-04-18 10:09:16 -0700
commit2810cbc7784e9a21e7001c31b65af94fd9ba7a5b (patch)
treed127eb13f4749cb40a4f58ce3a83985083751a8a /subcmds/upload.py
parent6ed4e2834639d0b08686882d2e39cd736d66c688 (diff)
downloadgit-repo-2810cbc7784e9a21e7001c31b65af94fd9ba7a5b.tar.gz
Only display a progress meter once we spend 0.5 seconds on a task
The point of the progress meter is to let the user know that the task is progressing, and give them a chance to estimate when it will be complete. If the task completes in under 0.5 seconds then it is sufficiently fast enough that the user doesn't need to be kept up-to-date on its progress; in fact showing the meter may just slow the task down waiting on the tty to redraw. We now delay the progress meter 0.5 seconds (or 1 second if the Python time.time() function isn't accurate enough) to avoid any really fast tasks, like a no-op local sync. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'subcmds/upload.py')
0 files changed, 0 insertions, 0 deletions