VirtualBox

Changeset 2602 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 12, 2007 8:01:48 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21109
Message:

preliminary system time offset implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r2601 r2602  
    300300                 "                            [-bioslogoimagepath <imagepath>]\n"
    301301                 "                            [-biosbootmenu disabled|menuonly|messageandmenu]\n"
     302                 "                            [-biossystemtimeoffset <msec>]\n"
    302303                 "                            [-boot<1-4> none|floppy|dvd|disk|net>]\n"
    303304                 "                            [-hd<a|b|d> none|<uuid>|<filename>]\n"
     
    753754    biosSettings->COMGETTER(IOAPICEnabled)(&ioapicEnabled);
    754755    RTPrintf("IOAPIC:          %s\n", ioapicEnabled ? "on" : "off");
     756
     757    LONG64 timeOffset;
     758    biosSettings->COMGETTER(TimeOffset)(&timeOffset);
     759    RTPrintf("Time offset:     %ld ms\n", timeOffset);
    755760
    756761    TriStateBool_T hwVirtExEnabled;
     
    27012706    char *bioslogoimagepath = NULL;
    27022707    char *biosbootmenumode = NULL;
     2708    char *biossystemtimeoffset = NULL;
    27032709    DeviceType_T bootDevice[4];
    27042710    int bootDeviceChanged[4] = { false };
     
    28562862            biosbootmenumode = argv[i];
    28572863        }
     2864        else if (strcmp(argv[i], "-biossystemtimeoffset") == 0)
     2865        {
     2866            if (argc <= i + 1)
     2867            {
     2868                return errorArgument("Missing argument to '%s'", argv[i]);
     2869            }
     2870            i++;
     2871            biossystemtimeoffset = argv[i];
     2872        }
    28582873        else if (strncmp(argv[i], "-boot", 5) == 0)
    28592874        {
     
    33323347            }
    33333348
     3349        }
     3350        if (biossystemtimeoffset)
     3351        {
     3352            LONG64 timeOffset = RTStrToInt64(biossystemtimeoffset);
     3353            CHECK_ERROR(biosSettings, COMSETTER(TimeOffset)(timeOffset));
    33343354        }
    33353355        for (int curBootDev = 0; curBootDev < 4; curBootDev++)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette