CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 06:22:34 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=76b32e479608d2cfdf34234d91132874b5f41dcc7270217f6eb2807c13deb29ba%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22v84-IRagzMbIjatCP63OSCzCGRUz35MN%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d480e94cff75e9-BLR
Graphic Timer - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* The utility is a graphic timer. It should be launched in a terminal
- * emulator. It determines the size of the terminal window and then
- * fills all of it with the character "W", in the number of minutes
- * indicated in the definition of the macro SESSION_DURATION_MINS. */
- #include <stdio.h>
- #include <sys/ioctl.h>
- #include <unistd.h>
- #include <stdlib.h>
- #define SESSION_DURATION_MINS 20
- #define MICROSECS_IN_A_MINUTE 60000000
- int main() {
- struct winsize w;
- // Get the number of columns and the number of lines of the terminal window
- if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) == -1) {
- perror("ioctl failed!");
- return 1;
- }
- int char_places_number = (int)(w.ws_row * w.ws_col);
- if (char_places_number <= 0) {
- fprintf(stderr, "Invalid terminal size.\n");
- return 1;
- }
- useconds_t timeout_microsecs = (useconds_t)(SESSION_DURATION_MINS * MICROSECS_IN_A_MINUTE / char_places_number);
- // Clear the screen
- printf("\033[H\033[J");
- for (int i = 0; i < char_places_number; i++) {
- (void) putchar(87);
- (void) fflush(stdout);
- (void) usleep(timeout_microsecs);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
📌 Swapzone +37% glitch ⭐ 2
JavaScript | 6 sec ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ E
JavaScript | 11 sec ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ 9
JavaScript | 15 sec ago | 0.25 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 20 sec ago | 0.25 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 24 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ Y
JavaScript | 29 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ 8
JavaScript | 35 sec ago | 0.25 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ O
JavaScript | 1 min ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand