File: bup-tick.1.md

package info (click to toggle)
bup 0.33.10-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,720 kB
  • sloc: python: 15,905; sh: 5,799; ansic: 2,965; pascal: 669; makefile: 21
file content (32 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% bup-tick(1) Bup %BUP_VERSION%
% Avery Pennarun <apenwarr@gmail.com>
% %BUP_DATE%

# NAME

bup-tick - wait for up to one second

# SYNOPSIS

bup tick

# DESCRIPTION

`bup tick` waits until `time`(2) returns a different value
than it originally did.  Since time() has a granularity of
one second, this can cause a delay of up to one second.

This program is useful for writing tests that need to
ensure a file date will be seen as modified.  It is
slightly better than `sleep`(1) since it sometimes waits
for less than one second.

# EXAMPLES

    $ date; bup tick; date
    Sat Feb  6 16:59:58 EST 2010
    Sat Feb  6 16:59:59 EST 2010
    
# BUP

Part of the `bup`(1) suite.